Code:
if(AL_ChamsEnable2==1)
{
if(AL_ChamsColorA || !AL_ChamsColorA)
{
if(m_Stride == 36)
{
if(AL_ChamsColorA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
if(AL_ChamsColorA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
if(AL_ChamsColorA==1){pDevice->SetTexture(0, aRed);}
if(AL_ChamsColorA==2){pDevice->SetTexture(0, aGreen);}
if(AL_ChamsColorA==3){pDevice->SetTexture(0, aBlue);}
if(AL_ChamsColorA==4){pDevice->SetTexture(0, aOrange);}
if(AL_ChamsColorA==5){pDevice->SetTexture(0, aPurple);}
if(AL_ChamsColorA==6){pDevice->SetTexture(0, aPink);}
if(AL_ChamsColorA==7){pDevice->SetTexture(0, aBlack);}
if(AL_ChamsColorA==8){pDevice->SetTexture(0, aCyan);}
if(AL_ChamsColorA==9){pDevice->SetTexture(0, aWhite);}
pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
if(m_Stride == 32)
{
if(AL_ChamsColorA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
if(AL_ChamsColorA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
if(AL_ChamsColorA==1){pDevice->SetTexture(0, aRed);}
if(AL_ChamsColorA==2){pDevice->SetTexture(0, aGreen);}
if(AL_ChamsColorA==3){pDevice->SetTexture(0, aBlue);}
if(AL_ChamsColorA==4){pDevice->SetTexture(0, aOrange);}
if(AL_ChamsColorA==5){pDevice->SetTexture(0, aPurple);}
if(AL_ChamsColorA==6){pDevice->SetTexture(0, aPink);}
if(AL_ChamsColorA==7){pDevice->SetTexture(0, aBlack);}
if(AL_ChamsColorA==8){pDevice->SetTexture(0, aCyan);}
if(AL_ChamsColorA==9){pDevice->SetTexture(0, aWhite);}
pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
}
}
if(AL_ChamsEnable2==1)
{
if(AL_ChamsColorB || !AL_ChamsColorB)
{
if(m_Stride== 36)
{
if(AL_ChamsColorB)pDevice->SetRenderState(D3DRS_LIGHTING, false);
if(AL_ChamsColorB)pDevice->SetRenderState(D3DRS_ZENABLE, true);
if(AL_ChamsColorB==1){pDevice->SetTexture(0, aRed);}
if(AL_ChamsColorB==2){pDevice->SetTexture(0, aGreen);}
if(AL_ChamsColorB==3){pDevice->SetTexture(0, aBlue);}
if(AL_ChamsColorB==4){pDevice->SetTexture(0, aOrange);}
if(AL_ChamsColorB==5){pDevice->SetTexture(0, aPurple);}
if(AL_ChamsColorB==6){pDevice->SetTexture(0, aPink);}
if(AL_ChamsColorB==7){pDevice->SetTexture(0, aBlack);}
if(AL_ChamsColorB==8){pDevice->SetTexture(0, aCyan);}
if(AL_ChamsColorB==9){pDevice->SetTexture(0, aWhite);}
}
if(m_Stride== 32)
{
if(AL_ChamsColorB)pDevice->SetRenderState(D3DRS_LIGHTING, false);
if(AL_ChamsColorB)pDevice->SetRenderState(D3DRS_ZENABLE, true);
if(AL_ChamsColorB==1){pDevice->SetTexture(0, aRed);}
if(AL_ChamsColorB==2){pDevice->SetTexture(0, aGreen);}
if(AL_ChamsColorB==3){pDevice->SetTexture(0, aBlue);}
if(AL_ChamsColorB==4){pDevice->SetTexture(0, aOrange);}
if(AL_ChamsColorB==5){pDevice->SetTexture(0, aPurple);}
if(AL_ChamsColorB==6){pDevice->SetTexture(0, aPink);}
if(AL_ChamsColorB==7){pDevice->SetTexture(0, aBlack);}
if(AL_ChamsColorB==8){pDevice->SetTexture(0, aCyan);}
if(AL_ChamsColorB==9){pDevice->SetTexture(0, aWhite);}
}
}
}
PLEASE. as I can make the animal look red and right through the walls?