InstancedBufferGeometry with rotations


I just saw this nice pen:

Now I´m trying to figure out how to add individual rotations to each box?
Any help would be great.


Quick search gave me this link: GLSL rotation about an arbitrary axis - Neil Mendoza
And here is possibly the worst solution ever :sweat_smile:
Added another instanced buffer attribute for speeds of rotation on axes.

This is so cool!

Thanks bigtime

There is also an official three.js example for this use case:

1 Like