refreshUniformsPhong method

dynamic refreshUniformsPhong(
  1. dynamic uniforms,
  2. dynamic material
)

Implementation

refreshUniformsPhong(uniforms, material) {
  uniforms["specular"]["value"].copy(material.specular);
  uniforms["shininess"]["value"] =
      Math.max<num>(material.shininess, 1e-4); // to prevent pow( 0.0, 0.0 )
}