C++ Direct3d Chams Not Working Properly
Hey there so i have been using Azorbix's starter kit and ive created a couple of wallhacks, the thing about them is that i can get the chams to work, but if i am too close to an enemy their textures wont be drawn leaving them normal and without the chams applied.
Is there anywhere other than DrawIndexedPrimitive that i need to draw the chams in order to keep all enemies coloured at all times.
Here is the basic code that i am using to disable the zbuffer and colour the enemies.
Code:
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, false);
m_pD3Ddev->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID ); //D3DFILL_SOLID
m_pD3Ddev->SetTexture(0,texRed);
m_pD3Ddev->DrawIndexedPrimitive(device,BaseVertexIndex,MinVertexIndex,NumVertices,startIndex,primCount);
m_pD3Ddev->SetTexture(0,texGreen);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, true);
Thanks for the help
EDIT:NVM fixed it, mark as solved.