#define ADR_FULLBRIGHT1 0x008B83C4 #define ADR_FULLBRIGHT2 0x008B83C0 #define ADR_FULLBRIGHT3 0x008B83BC #define ADR_FOGCOLOR1 0x008B8404 #define ADR_FOGCOLOR2 0x008B8400 #define ADR_FOGCOLOR3 0x008B83FC0
if (CH_FullBright==1){
pDevice->SetRenderState(D3DRS_LIGHTING, false);
pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(0,0,255,0));
}else{
pDevice->SetRenderState(D3DRS_AMBIENT, false);}
if(CH_Fog==1) pDevice->SetRenderState(D3DRS_FOGCOLOR,D3DCOLOR_ARGB(0,0,0,255)); Etc....