Make FAR_PLANE_Z static so initializer works in DeepGBufferRadiosity_blur.ps.hlsl

This commit is contained in:
Stephen Saunders 2024-02-07 14:58:09 -05:00
parent 2139416e43
commit de50e7575c

View file

@ -107,7 +107,7 @@ float3 sampleNormal( Texture2D<float3> normalBuffer, int2 ssC, int mipLevel )
/** Used for preventing AO computation on the sky (at infinite depth) and defining the CS Z to bilateral depth key scaling.
This need not match the real far plane but should not be much more than it.*/
const float FAR_PLANE_Z = -16000.0;
static const float FAR_PLANE_Z = -16000.0;
float CSZToKey( float z )
{