Browse Source

Merge pull request #14361 from WestLangley/dev-physical_reflectivity

Add missing reflectivity uniform update
Mr.doob 7 năm trước cách đây
mục cha
commit
61821b4c94
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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 ) {