From 69a598432b30384efaf8235217b66954c3e66da9 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Fri, 23 May 2025 14:48:10 +0100 Subject: [PATCH] WorldClusterDebug compatibility with WebGPU --- src/scene/lighting/world-clusters-debug.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scene/lighting/world-clusters-debug.js b/src/scene/lighting/world-clusters-debug.js index d5490124029..1fed326ac11 100644 --- a/src/scene/lighting/world-clusters-debug.js +++ b/src/scene/lighting/world-clusters-debug.js @@ -161,6 +161,7 @@ class WorldClustersDebug { if (cubes) { mesh.setPositions(positions); + mesh.setNormals(new Float32Array(positions.length)); mesh.setColors32(colors); mesh.setIndices(indices); mesh.update(PRIMITIVE_TRIANGLES, false);