pub fn make_float_param_set(name: &str, vals: Vec<Float>) -> ParamSet
Expand description
Creates a ParamSet
with one entry containing name
and set to vals
.
ยงExamples
use pbrt::core::paramset::testutils::make_float_param_set;
let ps = make_float_param_set("value", vec![1.]);
assert_eq!(ps.find_one_float("value", 2.), 1.);
assert_eq!(ps.find_one_float("non-existent", 2.), 2.);