Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Render()
- {
- if (Model == null) return;
- shader.Use();
- shader.SetMatrix4("model", _model);
- shader.SetMatrix4("projection", Links.SceneCamera.Proj);
- shader.SetMatrix4("view", Links.SceneCamera.View);
- GL.BindVertexArray(VAO);
- GL.DrawElements(BeginMode.Triangles, Indices.Length, DrawElementsType.UnsignedInt, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement