Have 100 cubes flying around in a circle with refraction.

This commit is contained in:
Zed A. Shaw 2026-09-09 13:36:53 -04:00
parent 1107c86036
commit a199d41890
7 changed files with 29 additions and 15 deletions

View file

@ -16,12 +16,7 @@ uniform vec3 offsets[10];
void main()
{
// THIS WORKS
// vec3 in_offset = offsets[gl_InstanceID];
// 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;