File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
examples/jsm/nodes/materials Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ class NodeMaterial extends ShaderMaterial {
4242
4343 this . lightsNode = null ;
4444 this . envNode = null ;
45+
46+ // Only used by WebGLRenderer for scaling the environment illumination
47+ // For WebGPURenderer scaling of the environment intensity can be achieved as envNode.mul(...)
4548 this . envMapIntensityNode = null ;
4649
4750 this . colorNode = null ;
@@ -233,12 +236,6 @@ class NodeMaterial extends ShaderMaterial {
233236
234237 }
235238
236- if ( this . envMapIntensityNode && node ) {
237-
238- node = node . mul ( this . envMapIntensityNode ) ;
239-
240- }
241-
242239 return node ;
243240
244241 }
@@ -479,6 +476,7 @@ class NodeMaterial extends ShaderMaterial {
479476
480477 this . lightsNode = source . lightsNode ;
481478 this . envNode = source . envNode ;
479+
482480 this . envMapIntensityNode = source . envMapIntensityNode ;
483481
484482 this . colorNode = source . colorNode ;
You can’t perform that action at this time.
0 commit comments