reflectivity property

  1. @override
num get reflectivity
override

Implementation

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

Implementation

@override
set reflectivity(value) {
  ior = (1 + 0.4 * value) / (1 - 0.4 * value);
}