Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. if (AXIS)
  2.                 {
  3.                     pDevice->SetTexture(0, pRedTex);
  4.                     pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
  5.                     oDrawIndexedPrimitive(pDevice, pType, uiMinIndex, uiNumVertices, uiStartIndex, uiPrimitiveCount);
  6.                     if (bWallHack)
  7.                         hVertexConstant.fDepth[3] = 1.0f;
  8.                     hVertexConstant.fColor[0] = hVertexConstant.fColor[1] = hVertexConstant.fColor[2] = hVertexConstant.fColor[3] = 1.0f;
  9.                     oSetVertexShaderConstant(pDevice, 0, (const void*)&hVertexConstant, 9);
  10.                     oDrawIndexedPrimitive(pDevice, pType, uiMinIndex, uiNumVertices, uiStartIndex, uiPrimitiveCount);
  11.  
  12.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement