From 661de759ef50dfa5ecf410ad62f3ad4cfe599ad4 Mon Sep 17 00:00:00 2001 From: jk20012001 Date: Tue, 22 Sep 2026 11:50:47 +0800 Subject: [PATCH] fix(shader): HDR output for all floating point render targets (#351) --- .../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