Found it! You have to bind the VAO before attaching it to the VBO. I told you it was one line of code.
This commit is contained in:
parent
753df69b4c
commit
1107c86036
2 changed files with 14 additions and 15 deletions
|
|
@ -21,6 +21,7 @@ void main()
|
|||
|
||||
// THIS DOES NOT, see Scene::setup_instancing and Mesh::draw
|
||||
vec3 in_offset = aOffset;
|
||||
// in_offset.x = gl_InstanceID;
|
||||
|
||||
vec4 offset = vec4(aPos + in_offset, 1.0);
|
||||
gl_Position = projection * view * model * offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue