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:
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: