Fix CSM shadows intensity due to sharpness trick
This commit is contained in:
@@ -283,6 +283,11 @@ ShadowSample SampleDirectionalLightShadow(LightData light, Buffer<float4> shadow
|
||||
#endif
|
||||
|
||||
result.SurfaceShadow = PostProcessShadow(shadow, result.SurfaceShadow);
|
||||
|
||||
// Fix shadow intensity that got reduced by cascades sharpness stabilization (see above)
|
||||
if (cascadeIndex != 0 && result.SurfaceShadow <= 0.1f)
|
||||
result.SurfaceShadow += 0.01f;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user