custom data on instanced meshes not working

Instanced mesh custom data sounds like the description for custom primitive data:

So to test it I made this Material:

With custom primitive data (working):

With instanced mesh custom data (not working, if it worked one of the balls would be red, the other black):

Why isn’t it working?

At a glance, you have only 1 custom data float, but you need 3, and set values like so:

For colour alone you need 3, but the above example was using the 4th float packed into the v4 (similar to your metallic):

Here, the data Index 0 would cover the first 3 floats.

1 Like

ah that was it, didn’t know per instance custom data and custom primitive data required different material input, thanks!

1 Like