fix(shader): HDR output for all floating point render targets (#351)

This commit is contained in:
jk20012001
2026-09-22 11:50:47 +08:00
committed by GitHub
parent 0ab8246486
commit 661de759ef
@@ -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