Skip to content

Commit 3b03cd7

Browse files
mvaligurskyMartin Valigursky
andauthored
WorldClusterDebug compatibility with WebGPU (#7710)
Co-authored-by: Martin Valigursky <[email protected]>
1 parent 97e36b6 commit 3b03cd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scene/lighting/world-clusters-debug.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ class WorldClustersDebug {
161161

162162
if (cubes) {
163163
mesh.setPositions(positions);
164+
mesh.setNormals(new Float32Array(positions.length));
164165
mesh.setColors32(colors);
165166
mesh.setIndices(indices);
166167
mesh.update(PRIMITIVE_TRIANGLES, false);

0 commit comments

Comments
 (0)