From d6a568c33958ec6e6b8adbc5d91f9909aa486c42 Mon Sep 17 00:00:00 2001 From: jk20012001 Date: Sun, 20 Sep 2026 12:03:32 +0800 Subject: [PATCH] fix(shader): HDR output for all floating point render targets --- .../main-functions/render-to-scene/pipeline/forward-fs.chunk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/assets/chunks/shading-entries/main-functions/render-to-scene/pipeline/forward-fs.chunk b/editor/assets/chunks/shading-entries/main-functions/render-to-scene/pipeline/forward-fs.chunk index 386daaf090..4be5559694 100644 --- a/editor/assets/chunks/shading-entries/main-functions/render-to-scene/pipeline/forward-fs.chunk +++ b/editor/assets/chunks/shading-entries/main-functions/render-to-scene/pipeline/forward-fs.chunk @@ -145,7 +145,7 @@ void main() { color = packRGBE(color.rgb); // for reflection-map #else color = CCSurfacesDebugDisplayInvalidNumber(color); - #if !CC_USE_FLOAT_OUTPUT || CC_IS_TRANSPARENCY_PASS + #if !CC_USE_FLOAT_OUTPUT color.rgb = HDRToLDR(color.rgb); color.rgb = LinearToSRGB(color.rgb); #endif