diff --git a/build/engine/shaders/ppgensm/ppgensm_point.ps b/build/engine/shaders/ppgensm/ppgensm_point.ps index 9a5e602d8f6ee60da3dbfd3e34f1ea01bd37888b..c8ada90efd0229bda6a13235bb2c7cfdb0a432a4 100644 --- a/build/engine/shaders/ppgensm/ppgensm_point.ps +++ b/build/engine/shaders/ppgensm/ppgensm_point.ps @@ -102,6 +102,7 @@ float4 main(VSO_ResPos IN):COLOR0 float fBiasZ = (lf - fDepthLightZ * (lf - ln)) * (lf - fDepthLightZ * (lf - ln)) / (lf * ln * (lf - ln)) * lf * 0.0008f * fScaleFactor - fBias0; // float fD = g_vPixelSizeBias.x * 0.5f * fDistance / g_vLightColorPower.w; + fBias = sqrt(1.0f / (cosTheta * cosTheta) - 1.0f); // fBias = fD * sqrt(1.0f / (cosTheta * cosTheta) - 1.0f); // float fCompareTo = fDistance - fBias * 200.0f; float fCompareTo = fDistance - fBias;