Fix hopefully last nan for iridescent material
This commit is contained in:
parent
b1351747b7
commit
86d009fb4c
3 changed files with 84 additions and 64 deletions
|
|
@ -33,6 +33,11 @@ pub fn example_scenes<R: Rng + Debug + 'static>() -> HashMap<&'static str, Box<d
|
|||
"stanford_dragon_iridescent",
|
||||
Box::new(stanford_dragon::StanfordDragon::new(material)),
|
||||
);
|
||||
let material = Iridescent::new(0.9 * 988.0, 0.1 * 988.0, 1.0, 1.5, 20);
|
||||
map.insert(
|
||||
"stanford_dragon_iridescent2",
|
||||
Box::new(stanford_dragon::StanfordDragon::new(material)),
|
||||
);
|
||||
let material = Mirror::new(Color::white());
|
||||
map.insert(
|
||||
"stanford_dragon_mirror",
|
||||
|
|
@ -45,6 +50,7 @@ pub fn example_scenes<R: Rng + Debug + 'static>() -> HashMap<&'static str, Box<d
|
|||
map.insert("mis_test", Box::new(mis_test::MISTest::new()));
|
||||
|
||||
let material = Iridescent::new(250.0, 250.0, 1.0, 1.3, 20);
|
||||
let material = Iridescent::new(0.9 * 988.0, 0.1 * 988.0, 1.0, 1.5, 20);
|
||||
map.insert("sphere", Box::new(sphere::SphereScene::new(material)));
|
||||
map
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue