Add mesh selection for bcres

This commit is contained in:
KillzXGaming 2019-05-11 21:47:27 -04:00
parent 7779e8cce4
commit 7f897fc590
3 changed files with 8 additions and 0 deletions

Binary file not shown.

View file

@ -327,7 +327,15 @@ namespace FirstPlugin
private static void DrawModelSelection(STGenericObject p, ShaderProgram shader) private static void DrawModelSelection(STGenericObject p, ShaderProgram shader)
{ {
GL.Uniform1(shader["colorOverride"], 1);
GL.PolygonMode(MaterialFace.Front, PolygonMode.Line);
GL.Enable(EnableCap.LineSmooth);
GL.LineWidth(1.3f);
GL.DrawElements(PrimitiveType.Triangles, p.lodMeshes[p.DisplayLODIndex].displayFaceSize, DrawElementsType.UnsignedInt, p.Offset);
GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
GL.Uniform1(shader["colorOverride"], 0);
GL.DrawElements(PrimitiveType.Triangles, p.lodMeshes[p.DisplayLODIndex].displayFaceSize, DrawElementsType.UnsignedInt, p.Offset);
} }
} }
} }