Mercurial > mm7
diff DecalBuilder.cpp @ 1650:b0a2b8525483
Merge
author | Grumpy7 |
---|---|
date | Wed, 18 Sep 2013 06:32:15 +0200 |
parents | 2c71fa8913d2 |
children | c1c74df0a33e |
line wrap: on
line diff
--- a/DecalBuilder.cpp Wed Sep 18 06:30:53 2013 +0200 +++ b/DecalBuilder.cpp Wed Sep 18 06:32:15 2013 +0200 @@ -686,10 +686,10 @@ float v15; if (fabs(z_bias) < 1e-5) - v15 = 1.0 - 1.0 / ((1.0f / get_shading_dist_mist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0); + v15 = 1.0 - 1.0 / ((1.0f / pGame->pIndoorCameraD3D->GetShadingDistMist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0); else { - v15 = 1.0 - 1.0 / ((1.0f / get_shading_dist_mist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0) - z_bias; + v15 = 1.0 - 1.0 / ((1.0f / pGame->pIndoorCameraD3D->GetShadingDistMist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0) - z_bias; if (v15 < 0.000099999997) v15 = 0.000099999997; }