envprobe large lighting value flickering fix

This commit is contained in:
Turánszki János
2026-02-18 07:32:29 +01:00
parent b37b99f637
commit 835e41fbe3
+4
View File
@@ -1143,6 +1143,10 @@ float4 main(PixelInput input, in bool is_frontface : SV_IsFrontFace APPEND_COVER
#ifndef DISABLE_ALPHATEST
coverage = AlphaToCoverage(color.a, alphatest, dithering, input.pos); // opaque soft alpha test (MSAA, temporal AA support)
#endif // DISABLE_ALPHATEST
#ifdef ENVMAPRENDERING
color = clamp(color, 0, 1000); // don't allow very large values in envmap, because it could cause filtering to blow up
#endif // ENVMAPRENDERING
// end point:
#ifdef PREPASS