Framebuffer rendering on quad is now working! 😂

This commit is contained in:
2020-03-25 13:06:40 -05:00
parent 87ae77a9cb
commit 15e5d0a5e1
6 changed files with 60 additions and 21 deletions

View File

@@ -169,10 +169,13 @@ class IMICFPS
def configure_vao
glBindVertexArray(@vertex_array_id)
gl_error?
# index, size, type, normalized, stride, pointer
# vertices (positions)
glBindBuffer(GL_ARRAY_BUFFER, @positions_buffer_id)
gl_error?
# inPosition
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, nil)
gl_error?