comparison DecalBuilder.cpp @ 1637:2c71fa8913d2

class OutdoorCamera -> ODMRenderParams
author Nomad
date Tue, 17 Sep 2013 14:10:41 +0200
parents c9e3b93ec570
children c1c74df0a33e
comparison
equal deleted inserted replaced
1633:384a6b9d1333 1637:2c71fa8913d2
684 uFinalB = floorf(uTintB / 255.0 * color_mult * uDecalColorMultB + 0.0f); 684 uFinalB = floorf(uTintB / 255.0 * color_mult * uDecalColorMultB + 0.0f);
685 685
686 686
687 float v15; 687 float v15;
688 if (fabs(z_bias) < 1e-5) 688 if (fabs(z_bias) < 1e-5)
689 v15 = 1.0 - 1.0 / ((1.0f / get_shading_dist_mist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0); 689 v15 = 1.0 - 1.0 / ((1.0f / pGame->pIndoorCameraD3D->GetShadingDistMist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0);
690 else 690 else
691 { 691 {
692 v15 = 1.0 - 1.0 / ((1.0f / get_shading_dist_mist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0) - z_bias; 692 v15 = 1.0 - 1.0 / ((1.0f / pGame->pIndoorCameraD3D->GetShadingDistMist()) * pDecal->pVertices[i].vWorldViewPosition.x * 1000.0) - z_bias;
693 if (v15 < 0.000099999997) 693 if (v15 < 0.000099999997)
694 v15 = 0.000099999997; 694 v15 = 0.000099999997;
695 } 695 }
696 696
697 pVerticesD3D[i].pos.z = v15; 697 pVerticesD3D[i].pos.z = v15;