Namespace: DeltaEngine.Rendering3D.Tests
Assembly: DeltaEngine.Rendering3D.Tests (in DeltaEngine.Rendering3D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering3D.Tests (in DeltaEngine.Rendering3D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void DynamicLightChangeColorByRightClicking() { Camera.Current.Position = 1.5f * Vector3D.One; SunLight.Current = new SunLight(Vector3D.One, colors[0]); var cube = new Box(Vector3D.Zero); cube.Start<UpdateLightDirection>(); new Command(Command.RightClick, () => { //ncrunch: no coverage start SunLight.Current.Color = colors[currentColor++ % colors.Length]; }); //ncrunch: no coverage end }
See Also