[MDX] No Commit member function in Lighting Class

Started by
0 comments, last by jfclavette 18 years, 7 months ago
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


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;


But it does not work. Can anyone tell me how to make my light working? ninjaindark
Advertisement
device.Lights.Commit() was replaced by device.Lights..Update() in the latest(?) SDK release.
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style

This topic is closed to new replies.

Advertisement