reflectivity property
Implementation
@override
num get reflectivity {
return (MathUtils.clamp(2.5 * (ior! - 1) / (ior! + 1), 0, 1));
}
Implementation
@override
set reflectivity(value) {
ior = (1 + 0.4 * value) / (1 - 0.4 * value);
}
@override
num get reflectivity {
return (MathUtils.clamp(2.5 * (ior! - 1) / (ior! + 1), 0, 1));
}
@override
set reflectivity(value) {
ior = (1 + 0.4 * value) / (1 - 0.4 * value);
}