problem in light
i want to show a shiny object in my frame work
i write these code ( c# ):
_device.Lights[3].Type = LightType.Point;
_device.Lights[3].Ambient = Color.White;
_device.Lights[3].Diffuse = Color.White;
_device.Lights[3].Specular = Color.White;
_device.Lights[3].Range = 10000;
_device.Lights[3].Attenuation0 =0f;
_device.Lights[3].Attenuation1 = 0.01f;
_device.Lights[3].Attenuation2 = 0.01f;
_device.Lights[3].Range = 100000;
_device.Lights[3].Enabled = true;
_device.Lights[3].Update();
but nothin appeare in my frame work
please help
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement