Fix benchmark

Benchmark code had become out-of-sync with main code and wasn't compiling.
This commit is contained in:
Matthew Gordon 2025-03-21 21:12:59 -03:00
parent d43cf2feeb
commit 7172bab68f
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
use criterion::{criterion_group, criterion_main, Criterion};
use vanrijn::colour::{ColourRgbF, NamedColour};
use vanrijn::colour::{ColourRgbF, NamedColour, Spectrum};
use vanrijn::materials::ReflectiveMaterial;
use vanrijn::math::Vec3;
use vanrijn::mesh::load_obj;
@ -26,7 +26,9 @@ fn simple_scene(bencher: &mut Criterion) {
load_obj(
&model_file_path,
Arc::new(ReflectiveMaterial {
colour: ColourRgbF::from_named(NamedColour::Yellow),
colour: Spectrum::reflection_from_linear_rgb(&ColourRgbF::from_named(
NamedColour::Yellow,
)),
diffuse_strength: 0.05,
reflection_strength: 0.9,
}),