How to have different sizes of instanced Mesh?

I am instancing plane geometry and I wanna have different sizes and textures for every mesh.
I have achieved the different textures by providing the instance buffer attribute and using onBeforeCompile Method on material of mesh and tweaking the fragment shader. But So I was thinking about using the same kinda solution to get different sizes but I can not use OnBeforeCompile method on geometry, is there way of doing it?

Can you just use a different scale value for each instance?

2 Likes

oh that worked, it was so straight forward, idk why I thought it is not gonna be easy. Thanks :slight_smile: