public override void DrawNode(GameWorld world, DebugRender dr, Color color, bool selected) { var transform = WorldMatrix; var lightColor = LightPresetColor.GetColor(LightPreset, Intensity); var max = Math.Max(Math.Max(lightColor.Red, lightColor.Green), Math.Max(lightColor.Blue, 1)); var dispColor = new Color((byte)(lightColor.Red / max * 255), (byte)(lightColor.Green / max * 255), (byte)(lightColor.Blue / max * 255), (byte)255); dr.DrawPoint(transform.TranslationVector, 1, color, 1); if (selected) { dr.DrawSphere(transform.TranslationVector, Radius, dispColor); } else { } }