Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1.         public void Render()
  2.         {
  3.             if (Model == null) return;
  4.  
  5.             shader.Use();
  6.  
  7.             shader.SetMatrix4("model", _model);
  8.             shader.SetMatrix4("projection", Links.SceneCamera.Proj);
  9.             shader.SetMatrix4("view", Links.SceneCamera.View);
  10.             GL.BindVertexArray(VAO);
  11.             GL.DrawElements(BeginMode.Triangles, Indices.Length, DrawElementsType.UnsignedInt, 0);
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement