diff --git a/src/nodes/lighting/EnvironmentNode.js b/src/nodes/lighting/EnvironmentNode.js index 3eff84ca70dff6..04eae661880568 100644 --- a/src/nodes/lighting/EnvironmentNode.js +++ b/src/nodes/lighting/EnvironmentNode.js @@ -29,7 +29,7 @@ class EnvironmentNode extends LightingNode { let envNode = this.envNode; - if ( envNode.isTextureNode || envNode.isMaterialReferenceNode ) { + if ( envNode.isTextureNode || envNode.isMaterialReferenceNode ) { const value = ( envNode.isTextureNode ) ? envNode.value : material[ envNode.property ];