I have a D3D menu and obviously the hook. For the fullbright i used this code:
Code:
void FullBright( LPDIRECT3DDEVICE9 D3DDEVICE, DWORD VALUE )
{
g_pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
g_pDevice->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
g_pDevice->SetRenderState(D3DRS_LIGHTING, false);
g_pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,255,255));
g_pDevice->SetRenderState(D3DRS_FOGENABLE, false);
}
and called it like that:
Code:
FullBright(g_pDevice, D3DZB_FALSE );
But ingame it doesnt change anything
Can someone say what im doing wrong please?
thanks.