Hi, I've been using Graphics.RenderMeshInstanced to draw instanced meshes, my shader is simple. Now how can I add a new custom float to each instance?
I looked into https://docs.unity3d.com/6000.2/Documentation/ScriptReference/Graphics.RenderMeshInstanced.html but it doesn't go into details about the custom weight property.
I also saw some advise about using MaterialPropertyBlock but that system doesn't yet support NativeArray so I rather find an alternative.
Right now I'm just using my NativeList<Matrix4x4> _matrices with the Graphics.RenderMeshInstanced function and its pretty good. I wonder if I can keep it in the same quality and add custom data to the instances.
++ standard render pipeline