envprobe large lighting value flickering fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user