Hi. I want to use same material on normal game objects and on objects instanced using Graphics.RenderMeshIndirect. This shader receives instance ID in vert program parameters as per documentation. v2f vert(appdata_base v, uint svInstanceID : SV_InstanceID)
How can I check in shader if it was instanced or not and disable/replace parts of the code for non instanced rendering? Is there a #define that I can check or something? Thanks.