device.Lights[0].Type = LightType.Directional;
device.Lights[0].Position = new Vector3(0, 1, 1);
device.Lights[0].Diffuse = Color.DarkBlue;
device.Lights[0].Update();
device.Lights[0].Enabled = true;
[MDX] No Commit member function in Lighting Class
Hi,
Some sample codes use device.Lights[0].Commit() to commit a light setting. I know it is no longer exist in the newest SDK. But what is the alternative?
I simply use
But it does not work. Can anyone tell me how to make my light working?
ninjaindark
device.Lights.Commit() was replaced by device.Lights..Update() in the latest(?) SDK release.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement