refreshUniformsPhong method
dynamic
refreshUniformsPhong(
- dynamic uniforms,
- 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 )
}