33 pDevice->SetTextureStageState( 0, D3DTSS_MINFILTER, 2 );
34 pDevice->SetTextureStageState( 0, D3DTSS_MAGFILTER, 2 );
35 pDevice->SetTextureStageState( 0, D3DTSS_MIPFILTER, 1 );
36 pDevice->SetTextureStageState( 0, D3DTSS_COLOROP, 4 );
37 pDevice->SetTextureStageState( 0, D3DTSS_COLORARG1, 2 );
38 pDevice->SetTextureStageState( 0, D3DTSS_COLORARG2, 1 );
39 pDevice->SetTextureStageState( 0, D3DTSS_ALPHAOP, 4 );
40 pDevice->SetTextureStageState( 0, D3DTSS_ALPHAARG1, 2 );
41 pDevice->SetTextureStageState( 0, D3DTSS_ALPHAARG2, 1 );
42 pDevice->SetTextureStageState( 1, D3DTSS_COLOROP, 1 );
43 pDevice->SetTextureStageState( 1, D3DTSS_ALPHAOP, 1 );
44 pDevice->SetVertexShader( D3DFVF_TEX1 | D3DFVF_DIFFUSE | D3DFVF_XYZ );
48 pDevice->SetTransform( D3DTS_PROJECTION, pRenderContext->GetProjectionMatrix() );
49 pDevice->SetTransform( D3DTS_VIEW, s_Identity );
50 pDevice->SetPixelShader( 0 );
52 pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
53 pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
54 pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, TRUE );
55 pDevice->SetRenderState( D3DRS_ALPHAREF, 1 );
56 pDevice->SetRenderState( D3DRS_ALPHAFUNC, 5 );
57 pDevice->SetRenderState( D3DRS_SPECULARENABLE, FALSE );
58 pDevice->SetRenderState( D3DRS_LIGHTING, 0 );
59 pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
61 m_aOrderTables[ 0 ].Render();
62 pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
63 pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, FALSE );
64 pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
77 pDevice->SetTextureStageState( 0, D3DTSS_MINFILTER, 2 );
78 pDevice->SetTextureStageState( 0, D3DTSS_MAGFILTER, 2 );
79 pDevice->SetTextureStageState( 0, D3DTSS_MIPFILTER, 1 );
80 pDevice->SetTextureStageState( 0, D3DTSS_COLOROP, 4 );
81 pDevice->SetTextureStageState( 0, D3DTSS_COLORARG1, 2 );
82 pDevice->SetTextureStageState( 0, D3DTSS_COLORARG2, 1 );
83 pDevice->SetTextureStageState( 0, D3DTSS_ALPHAOP, 4 );
84 pDevice->SetTextureStageState( 0, D3DTSS_ALPHAARG1, 2 );
85 pDevice->SetTextureStageState( 0, D3DTSS_ALPHAARG2, 1 );
86 pDevice->SetTextureStageState( 1, D3DTSS_COLOROP, 1 );
87 pDevice->SetTextureStageState( 1, D3DTSS_ALPHAOP, 1 );
88 pDevice->SetVertexShader( D3DFVF_TEX1 | D3DFVF_DIFFUSE | D3DFVF_XYZ );
92 pDevice->SetTransform( D3DTS_PROJECTION, (D3DMATRIX*)&pRenderContext->GetProjectionMatrix() );
93 pDevice->SetTransform( D3DTS_VIEW, s_Identity );
94 pDevice->SetPixelShader( 0 );
96 pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
97 pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
98 pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, TRUE );
99 pDevice->SetRenderState( D3DRS_ALPHAREF, 1 );
100 pDevice->SetRenderState( D3DRS_ALPHAFUNC, 5 );
101 pDevice->SetRenderState( D3DRS_SPECULARENABLE, FALSE );
102 pDevice->SetRenderState( D3DRS_LIGHTING, 0 );
103 pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
165 pDevice->SetTransform( D3DTS_WORLDMATRIX( 0 ), (D3DMATRIX*)&pPacket->
GetModelViewMatrix() );
166 pDevice->SetRenderState( D3DRS_ZBIAS, pMeshHAL->
GetZBias() );
172 pVertexPool->GetHALBuffer( &vertexHALBuffer );
175 pIndexPool->GetHALBuffer( &indexHALBuffer );
177 pDevice->SetStreamSource( 0, vertexHALBuffer.
apVertexBuffers[ 0 ], 24 );
182 if ( pIndexPool->GetFlags() & 8 )
184 pDevice->DrawIndexedPrimitive(
187 pVertexPool->GetNumVertices(),
189 pIndexPool->GetNumIndices() - 2
194 pDevice->DrawIndexedPrimitive(
197 pVertexPool->GetNumVertices(),
199 pIndexPool->GetNumIndices() / 3
204 pDevice->SetRenderState( D3DRS_ZBIAS, 0 );