Is it possible to use instanced material on instanced static mesh?
I have a book shelf full of books. Each book is instanced static mesh. Using vector parameter I can change book color, can I make it so each instance will have random color?
asked Aug 13 '15 at 01:27 PM in Blueprint Scripting
You cannot change material parameters on a per-instance basis because all of the instances are rendered in a single draw call with no material setting in between (which is part of what makes them faster to render).
But there is a PerInstanceRandom material node that will give you a consistent random number assigned to each instance. You could use that number to generate a color or as a texture coordinate to look up a value from a 1xn texture that you create with a different color in each pixel. That will give each book a consistent but different color.
answered Aug 14 '15 at 12:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here