Skip to content
Snippets Groups Projects
Commit e3191eb2 authored by D-AIRY's avatar D-AIRY
Browse files

minor PSSM quality fix

parent dd743885
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment