From f35286822aa41cfe0857142d13a2878cca659b57 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Mon, 9 Dec 2024 14:54:19 +0000 Subject: [PATCH] fix --- src/scene/gsplat/gsplat-compressed-material.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scene/gsplat/gsplat-compressed-material.js b/src/scene/gsplat/gsplat-compressed-material.js index f8d22754bf0..0376d108995 100644 --- a/src/scene/gsplat/gsplat-compressed-material.js +++ b/src/scene/gsplat/gsplat-compressed-material.js @@ -361,7 +361,8 @@ class GSplatCompressedShaderGenerator { generateKey(options) { const vsHash = hashCode(options.vertex); const fsHash = hashCode(options.fragment); - return `splat-${options.pass}-${options.gamma}-${options.toneMapping}-${vsHash}-${fsHash}-${options.dither}}`; + const defines = options.defines?.sort().join('-') ?? ''; + return `splat-${options.pass}-${options.gamma}-${options.toneMapping}-${vsHash}-${fsHash}-${options.dither}-${defines}`; } createShaderDefinition(device, options) {