Fullbright D3D

Posts 13 of 3 · Page 1 of 1
Fullbright D3D
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.
Put this in your DIP hook
Code:
		if(m_Stride == 44 || m_Stride == 36)
		{
		pDevice->SetRenderState(D3DRS_LIGHTING, false);
		}
man how can i uese thos codes ?!
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?