refreshUniformsStandard method
dynamic
refreshUniformsStandard(
- dynamic uniforms,
- dynamic material
Implementation
refreshUniformsStandard(uniforms, material) {
uniforms["roughness"]["value"] = material.roughness;
uniforms["metalness"]["value"] = material.metalness;
if (material.roughnessMap != null) {
uniforms["roughnessMap"]["value"] = material.roughnessMap;
}
if (material.metalnessMap != null) {
uniforms["metalnessMap"]["value"] = material.metalnessMap;
}
}