public void RegulatorSwitch_ValueChanged(NeoAxis.Component_RegulatorSwitchInSpace obj) { var scene = obj.ParentScene; var meshInSpace = scene.GetComponent("Ground") as Component_MeshInSpace; if (meshInSpace != null) { meshInSpace.Color = new ColorValue(1.0 - obj.Value, 1.0, 1.0 - obj.Value); } }
public void RegulatorSwitch_ValueChanged(NeoAxis.Component_RegulatorSwitchInSpace obj) { var scene = obj.ParentScene; var light = scene.GetComponent("Light 1") as Component_Light; if (light != null) { light.Color = new ColorValue(1.0, 1.0, 1.0 - obj.Value); } }
public void RegulatorSwitch_ValueChanged(NeoAxis.Component_RegulatorSwitchInSpace obj) { var scene = obj.ParentScene; var ground = scene.GetComponent("Ground") as Component_MeshInSpace; if (ground != null) { ground.Color = ColorValue.Lerp(new ColorValue(1, 1, 1), new ColorValue(0.4, 0.9, 0.4), (float)obj.Value); } }