I’m trying to assign an instanced property to my shader. This is rendered 128 times using DrawMeshInstanced and each position is indeed unique. However I wish to update a vector4 values each time I am rendering this, which I am trying to do via a material property block.
I have my instanced property declared like this:
UNITY_INSTANCING_CBUFFER_START(Props)
UNITY_DEFINE_INSTANCED_PROP(fixed4, _Color) // Make _Color an instanced property (i.e. an array)
UNITY_INSTANCING_CBUFFER_END