Commit ec84671 1 parent 262699a commit ec84671 Copy full SHA for ec84671
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ void cCamera::DrawScene()
107
107
RenderDevice->FlushPrimitive3D ();
108
108
RenderDevice->SetRenderState (RS_ZFUNC,CMP_LESSEQUAL);
109
109
RenderDevice->SetRenderState (RS_BILINEAR,true );
110
+ RenderDevice->SetRenderState (RS_ALPHA_TEST_MODE, ALPHATEST_GT_0);
110
111
}
111
112
112
113
std::vector<cCamera*>::iterator it_c;
@@ -150,8 +151,9 @@ void cCamera::DrawScene()
150
151
RenderDevice->SetRenderState (RS_ZWRITEENABLE, true );
151
152
152
153
uint32_t fogenable = RenderDevice->GetRenderState (RS_FOGENABLE);
153
- if (GetAttribute (ATTRCAMERA_SHADOW|ATTRCAMERA_SHADOWMAP|ATTRCAMERA_SHADOW_STRENCIL))
154
- RenderDevice->SetRenderState (RS_FOGENABLE,false );
154
+ if (GetAttribute (ATTRCAMERA_SHADOW|ATTRCAMERA_SHADOWMAP|ATTRCAMERA_SHADOW_STRENCIL)) {
155
+ RenderDevice->SetRenderState (RS_FOGENABLE, false );
156
+ }
155
157
156
158
// if(GetAttribute(ATTRCAMERA_ZMINMAX))
157
159
// {
You can’t perform that action at this time.
0 commit comments