From 630bb32cd5e83f7d8a7402dd744e9962d747cff3 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Thu, 6 Jun 2024 11:33:10 +0100 Subject: [PATCH] Fix shader chunk error for tonemapped compressed GS (#6670) --- src/scene/gsplat/gsplat-compressed-material.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scene/gsplat/gsplat-compressed-material.js b/src/scene/gsplat/gsplat-compressed-material.js index 0b781136226..c1b898cae99 100644 --- a/src/scene/gsplat/gsplat-compressed-material.js +++ b/src/scene/gsplat/gsplat-compressed-material.js @@ -254,10 +254,10 @@ vec4 evalSplat() { #endif #ifdef TONEMAP_ENABLED - color.rgb = gammaCorrectOutput(toneMap(decodeGamma(color.rgb))); + return vec4(gammaCorrectOutput(toneMap(decodeGamma(color.rgb))), B); + #else + return vec4(color.rgb, B); #endif - - return vec4(color.rgb, B); } `;