Initial camera camera repositioning
This commit is contained in:
parent
e61964c513
commit
7c160731e7
7 changed files with 82 additions and 44 deletions
|
|
@ -10,7 +10,7 @@ use std::fmt::Debug;
|
|||
pub struct ExampleScene<R: Rng> {
|
||||
pub scene: fn() -> Box<dyn Scene<R> + Sync>,
|
||||
pub camera_pos: Pos3,
|
||||
pub camera_dir: Dir3,
|
||||
pub camera_look_at: Pos3,
|
||||
pub camera_up: Dir3,
|
||||
pub horizontal_fov: Float,
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ pub fn cornell2<R: Rng + Debug + 'static>() -> ExampleScene<R> {
|
|||
ExampleScene {
|
||||
scene: f,
|
||||
camera_pos: Pos3::new(275.0, 275.0, -800.0),
|
||||
camera_dir: Dir3::new(0.0, 0.0, 1.0),
|
||||
camera_look_at: Pos3::new(275.0, 275.0, 275.0),
|
||||
camera_up: Dir3::up(),
|
||||
horizontal_fov: 90.0_f32.to_radians(),
|
||||
}
|
||||
|
|
@ -137,7 +137,7 @@ pub fn basic_cornell<R: Rng + 'static>() -> ExampleScene<R> {
|
|||
ExampleScene {
|
||||
scene: f,
|
||||
camera_pos: Pos3::new(-6.0, 0.0, 0.0),
|
||||
camera_dir: Dir3::new(1.0, 0.0, 0.0),
|
||||
camera_look_at: Pos3::new(0.0, 0.0, 0.0),
|
||||
camera_up: Dir3::up(),
|
||||
horizontal_fov: Float::to_radians(90.0),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue