public void Draw(GL_ControlModern control, Pass pass, Vector4 highlightColor) { if (pass == Pass.PICKING) { control.CurrentShader = Framework.SolidColorShaderProgram; GL.LineWidth(5); control.CurrentShader.SetVector4("color", control.NextPickingColor()); } else if (pass == Pass) { control.CurrentShader = ExtraModelShaderProgram; if (pass == Pass.TRANSPARENT) { GL.Enable(EnableCap.Blend); } GL.LineWidth(3); control.CurrentShader.SetVector4("highlight_color", highlightColor); } else { return; } Vao.Use(control); GL.DrawElements(PrimitiveType, IndexCount, DrawElementsType.UnsignedInt, 0); GL.LineWidth(2); GL.Disable(EnableCap.Blend); }