reflectivity property

  1. @override
double get reflectivity
override

Implementation

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

Implementation

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