public void Render() { GL.PushMatrix(); try { SLog.Assert(gameObject != null, "gameObject is NULL!"); SLog.Assert(transform != null, "transform is NULL!"); GL.MultMatrix(transform.localToWorldMatrix); switch (Bright) { case true: if (MaterialHelper.mat_bright.SetPass(0)) { GL.Begin(GL.LINES); Draw(); GL.End(); } break; case false: if (MaterialHelper.mat_line.SetPass(0)) { GL.Begin(GL.LINES); Draw(); GL.End(); } break; } } catch (Exception ex) { SLog.Error(ex); } finally { GL.PopMatrix(); } }