[Feature Request] Instance Index for Instanced Static Mesh in the Material Editor
I would like to have access for the instance index for instanced static meshes in the material editor.
I think it would provide more information about the instanced static mesh data, also you can generate a random number in a shader from this information. So you don't actually need the RandomNumber in the instaced static mesh.
My current problem with the Per instance random is that it generates a new random number everytime i remove or add a new instance.
Also an Instance World Location node would be also helpful.
I don't recall running into need of having instance ID in material, but yeah generally I would prefer having something else instead of per-instance fade amount, so upvoted and signed :)
As for instance position, last time I checked, there was InstanceLocalToWorld transform matrix for instanced meshes. If I remember correctly, Object Position node OR (0,0,0) chained to TransformPosition LocaTtoWorld node should give you per-instance world position, if they are used in vertex frequency shader. You could try passing it via custom UV.
answered Oct 05 '16 at 05:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here