Instanced mesh material?

How can i have so each one of my instanced mesh have its own material that i can change color on. Currently changeing for one change all of them

I guess that’s not possible because that’s what’s mesh instancing is all about. Afaik they can only differ in transform.

Somewhere I heard about the following analogy. Think about drawing your objects with pen on paper. Every material corresponds to a different colored pen. Drawing objects with the same pen is relatively fast, but always changing the pen between each object takes a huge amount of time.

You can’t with ISM’s.

You can use Per Instance Custom Data.

Example:

If you feed the vertex interpolator 3 floats, you get a color.


So, different material for each instance - no. Different colour, oh yeah. You can send more data than just a colour, ofc.

3 Likes