diff --git a/build/engine/shaders/ppgensm/ppgensm_pssm.ps b/build/engine/shaders/ppgensm/ppgensm_pssm.ps index c6547d5231fcd8021709f7ef8b92d94c09f49945..692ed9b4986cf5a540de8e576356b64c36e4b9e1 100644 --- a/build/engine/shaders/ppgensm/ppgensm_pssm.ps +++ b/build/engine/shaders/ppgensm/ppgensm_pssm.ps @@ -111,7 +111,12 @@ float4 main(VSO_ResPos IN): COLOR0 float ls_t_hit = dot(vNormalLS, vPixelPosLS.xyz) / dot(vNormalLS, lsGridLineDir); float3 ls_hit_p = ls_t_hit * lsGridLineDir; - float constantBias = fBaseBias[split]; + // float constantBias = fBaseBias[split]; + + // float constantBias = 0.000001f; + float fDoubledInversedViewWidth = g_mMatrixTextureV[split][0][0]; + float constantBias = delta * 0.0007f/* * pow(2, split) */ /* * pow(1.0 / fDoubledInversedViewWidth, 1.0f + (float)split) */ / fDoubledInversedViewWidth; + /** Compute Adaptive Epsilon **/ // Normalized depth value in shadow map