get back here

This commit is contained in:
4sval 2022-08-29 01:20:28 +02:00
parent 0b01400493
commit 8597e491e0
2 changed files with 1 additions and 2 deletions

View File

@ -122,6 +122,7 @@ public class Model : IDisposable
for (int section = 0; section < Sections.Length; section++)
{
Sections[section].Bind(section, Indices.Length);
_gl.DrawArrays(PrimitiveType.Triangles, Sections[section].FirstFaceIndex, Sections[section].FacesCount);
}
ImGui.EndTable();

View File

@ -95,8 +95,6 @@ public class Section : IDisposable
ImGui.EndTooltip();
}
_gl.DrawArrays(PrimitiveType.Triangles, FirstFaceIndex, FacesCount);
if (Parameters.IsNull) return;
_diffuseMap?.Bind(TextureUnit.Texture0);
_normalMap?.Bind(TextureUnit.Texture1);