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:
Zed A. Shaw 2026-09-09 13:06:29 -04:00
parent 753df69b4c
commit 1107c86036
2 changed files with 14 additions and 15 deletions

View file

@ -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;