public void dibujar() { shader.Use(); //setUniforms(); GL.BindVertexArray(VertexArrayObject); //dibuja GL.DrawElements(PrimitiveType.Triangles, indices.Length, DrawElementsType.UnsignedInt, 0); }
public void setterShader(string vert, string frag) { shader = new shader(vert, frag);//instancio shader shader.Use(); }
public void setShader() { shader = new shader("recursos/shaders/shader.vert", "recursos/shaders/shader.frag"); shader.Use(); }