Skip to content

Commit

Permalink
RenderNodes: Fix context.material reference. (mrdoob#26838)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Sep 25, 2023
1 parent 15e4656 commit 1a67ba7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/jsm/renderers/common/nodes/Nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Nodes extends DataMap {

const nodeBuilder = this.backend.createNodeBuilder( renderObject.object, this.renderer, renderObject.scene );
nodeBuilder.material = renderObject.material;
nodeBuilder.context.material = renderObject.material;
nodeBuilder.lightsNode = renderObject.lightsNode;
nodeBuilder.environmentNode = this.getEnvironmentNode( renderObject.scene );
nodeBuilder.fogNode = this.getFogNode( renderObject.scene );
Expand Down

0 comments on commit 1a67ba7

Please sign in to comment.