/// <summary> /// 给场景中增加光照 /// </summary> public void AddLightToScene() { Light light = new Light(new Vector3D(2, 0, 0), new SampleCommon.Color(0.0f, 0.9f, 0.2f)); mRenderer.AddLight(light); Material mat = new Material(0.9f, new SampleCommon.Color(0.8f, 0.8f, 0.8f)); mCube.Material = mat; }