Changing visibility of individual instances?

You can use a float as an instance value with a little trick:

https://playground.babylonjs.com/#LFXT0L#2

But that will do you no good because it won’t be used by the standard shader code.

What you can do instead is using the vertex color:

https://playground.babylonjs.com/#LFXT0L#4

4 Likes