Fix benchmark
Benchmark code had become out-of-sync with main code and wasn't compiling.
This commit is contained in:
parent
d43cf2feeb
commit
7172bab68f
|
|
@ -1,6 +1,6 @@
|
||||||
use criterion::{criterion_group, criterion_main, Criterion};
|
use criterion::{criterion_group, criterion_main, Criterion};
|
||||||
|
|
||||||
use vanrijn::colour::{ColourRgbF, NamedColour};
|
use vanrijn::colour::{ColourRgbF, NamedColour, Spectrum};
|
||||||
use vanrijn::materials::ReflectiveMaterial;
|
use vanrijn::materials::ReflectiveMaterial;
|
||||||
use vanrijn::math::Vec3;
|
use vanrijn::math::Vec3;
|
||||||
use vanrijn::mesh::load_obj;
|
use vanrijn::mesh::load_obj;
|
||||||
|
|
@ -26,7 +26,9 @@ fn simple_scene(bencher: &mut Criterion) {
|
||||||
load_obj(
|
load_obj(
|
||||||
&model_file_path,
|
&model_file_path,
|
||||||
Arc::new(ReflectiveMaterial {
|
Arc::new(ReflectiveMaterial {
|
||||||
colour: ColourRgbF::from_named(NamedColour::Yellow),
|
colour: Spectrum::reflection_from_linear_rgb(&ColourRgbF::from_named(
|
||||||
|
NamedColour::Yellow,
|
||||||
|
)),
|
||||||
diffuse_strength: 0.05,
|
diffuse_strength: 0.05,
|
||||||
reflection_strength: 0.9,
|
reflection_strength: 0.9,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue