From 69a4be1d627c3fab5cd7ccd0e617bde5554b1797 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Mon, 9 Dec 2024 14:36:44 +0000 Subject: [PATCH] Shader fix (#7187) --- src/scene/shader-lib/chunks/gsplat/vert/gsplatCompressedData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scene/shader-lib/chunks/gsplat/vert/gsplatCompressedData.js b/src/scene/shader-lib/chunks/gsplat/vert/gsplatCompressedData.js index e3149bf5269..d6b765ed687 100644 --- a/src/scene/shader-lib/chunks/gsplat/vert/gsplatCompressedData.js +++ b/src/scene/shader-lib/chunks/gsplat/vert/gsplatCompressedData.js @@ -62,7 +62,7 @@ mat3 quatToMat3(vec4 R) { // read center vec3 readCenter(SplatSource source) { - uint w = uint(textureSize(chunkTexture, 0).x) / 5; + uint w = uint(textureSize(chunkTexture, 0).x) / 5u; uint chunkId = source.id / 256u; ivec2 chunkUV = ivec2((chunkId % w) * 5u, chunkId / w);