Ver código fonte

Add missing reflectivity uniform update

WestLangley 7 anos atrás
pai
commit
62732acccb
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      src/renderers/WebGLRenderer.js

+ 4 - 2
src/renderers/WebGLRenderer.js

@@ -2214,11 +2214,13 @@ function WebGLRenderer( parameters ) {
 
 	function refreshUniformsPhysical( uniforms, material ) {
 
+		refreshUniformsStandard( uniforms, material );
+
+		uniforms.reflectivity.value = material.reflectivity; // also part of uniforms common
+
 		uniforms.clearCoat.value = material.clearCoat;
 		uniforms.clearCoatRoughness.value = material.clearCoatRoughness;
 
-		refreshUniformsStandard( uniforms, material );
-
 	}
 
 	function refreshUniformsDepth( uniforms, material ) {