Here's what I did:
D3DLIGHT9 updatedLight; //Update the Light Value ZeroMemory(&updatedLight, sizeof(updatedLight); updatedLight.Ambient = D3DXCOLOR(0.4f, 0.4f, 0.4f, 1.0f); updatedLight.Diffuse = D3DXCOLOR(0.9f, 0.9f, 0.9f, 1.0f); updatedLight.Direction = D3DXVECTOR3(0.707f, -0.707f, 0.707f); updatedLight.Specular = D3DXCOLOR(0, 0, 0, 1.0f); updatedLight.Type = D3DLIGHT_DIRECTIONAL; d3dDevice->SetLight(0, &updatedLight);
Can anyone please tell me proper way to do it? Thanks!






