Skip to content

Commit

Permalink
I guess I can't get away so easily for now
Browse files Browse the repository at this point in the history
  • Loading branch information
4sval committed Oct 27, 2022
1 parent 3d1d125 commit 86bd205
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions FModel/Views/Snooper/Model.cs
Expand Up @@ -238,17 +238,12 @@ public void Render(Shader shader)
GL.StencilFunc(StencilFunction.Always, 1, 0xFF);
}

for (var i = 0; i < Materials.Length; i++)
{
if (!Materials[i].IsUsed) continue;
Materials[i].Render(shader);
}

_vao.Bind();
shader.SetUniform("uMorphTime", MorphTime);
shader.SetUniform("display_vertex_colors", DisplayVertexColors);
for (int section = 0; section < Sections.Length; section++)
{
Materials[Sections[section].MaterialIndex].Render(shader);
Sections[section].Render(TransformsCount);
}
_vao.Unbind();
Expand Down

0 comments on commit 86bd205

Please sign in to comment.