mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-16 01:37:55 +00:00
Add mesh selection for bcres
This commit is contained in:
parent
7779e8cce4
commit
7f897fc590
3 changed files with 8 additions and 0 deletions
Binary file not shown.
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue