pDevice->SetRenderState( D3DRS_ZENABLE,false ); pDevice->SetPixelShader(sa.sYellow); //Behind Something
if (VisualHacks[5])
pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
else
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState( D3DRS_ZENABLE, true ); pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID ); pDevice->SetPixelShader(sa.sYellow);
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
Bookmarks