Skip to content

Commit 61821b4

Browse files
authored
Merge pull request #14361 from WestLangley/dev-physical_reflectivity
Add missing reflectivity uniform update
2 parents c0a3448 + 62732ac commit 61821b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/renderers/WebGLRenderer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,11 +2214,13 @@ function WebGLRenderer( parameters ) {
22142214

22152215
function refreshUniformsPhysical( uniforms, material ) {
22162216

2217+
refreshUniformsStandard( uniforms, material );
2218+
2219+
uniforms.reflectivity.value = material.reflectivity; // also part of uniforms common
2220+
22172221
uniforms.clearCoat.value = material.clearCoat;
22182222
uniforms.clearCoatRoughness.value = material.clearCoatRoughness;
22192223

2220-
refreshUniformsStandard( uniforms, material );
2221-
22222224
}
22232225

22242226
function refreshUniformsDepth( uniforms, material ) {

0 commit comments

Comments
 (0)