refreshUniformsPhong method

void refreshUniformsPhong(
  1. Map<String, dynamic> uniforms,
  2. Material material
)

Implementation

void refreshUniformsPhong(Map<String, dynamic> uniforms, Material material) {
  uniforms["specular"]["value"].setFrom(material.specular);
  uniforms["shininess"]["value"] = math.max<num>(material.shininess!, 1e-4); // to prevent pow( 0.0, 0.0 )
}