Skip to content

Commit de7991c

Browse files
committed
Update webgpu_lights_clustered.html
1 parent 44301c2 commit de7991c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/webgpu_lights_clustered.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
light.userData.fixedPosition = light.position.clone();
125125
light.visible = ( lights.children.length < count );
126126

127+
light.updateMatrixWorld();
128+
129+
lightDummy.setMatrixAt( lights.children.length, light.matrixWorld );
130+
127131
lights.add( light );
128132

129133
return light;

0 commit comments

Comments
 (0)