Custom Data for Instances

Hi All,

Is it possible to have some custom attribute for mesh instances, and use that in a Shader Material?
For example I have some custom data and inside a custom shader material I want to pass that for each instance.

Thanks for your help!

Would metadata help you? Example usage Unique Conditions for Each Clone and Instance

This might be what you are looking for Use Instances - Babylon.js Documentation

Thanks for your replies.
I found the answer here::
https://www.babylonjs-playground.com/#G3P9LH#2

1 Like