Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (AXIS)
- {
- pDevice->SetTexture(0, pRedTex);
- pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
- oDrawIndexedPrimitive(pDevice, pType, uiMinIndex, uiNumVertices, uiStartIndex, uiPrimitiveCount);
- if (bWallHack)
- hVertexConstant.fDepth[3] = 1.0f;
- hVertexConstant.fColor[0] = hVertexConstant.fColor[1] = hVertexConstant.fColor[2] = hVertexConstant.fColor[3] = 1.0f;
- oSetVertexShaderConstant(pDevice, 0, (const void*)&hVertexConstant, 9);
- oDrawIndexedPrimitive(pDevice, pType, uiMinIndex, uiNumVertices, uiStartIndex, uiPrimitiveCount);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement