Skip to content

Commit

Permalink
TiledLightsNode: Fix reflectedLight declaration sequence (#29874)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Nov 13, 2024
1 parent e5e8d20 commit cb663c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/jsm/tsl/lighting/TiledLightsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ class TiledLightsNode extends LightsNode {
lightingModel.directDiffuse.append();
lightingModel.directSpecular.append();

super.setupLights( builder, lightNodes );

Fn( () => {

Loop( this.tileLightCount, ( { i } ) => {
Expand All @@ -229,10 +231,6 @@ class TiledLightsNode extends LightsNode {

} )().append();

// others lights

super.setupLights( builder, lightNodes );

}

getBufferFitSize( value ) {
Expand Down

0 comments on commit cb663c5

Please sign in to comment.