Vertex ID Node

Hi:

I’d really like shader graph to have a Vertex ID node. That is the main reason I’m using Amplify Shader Editor instead of Unity’s shader graph. I’d imagine it is a simple oversight that this node is not available in shader graph.

I have a use case where I use Graphics.DrawProcedural to render procedural meshes, and each vertex’s data is pulled from a compute buffer indexed by the vertex’s ID.

Without a Vertex ID node in Unity’s shader graph, it is impossible to achieve this.

This seems like a use case common enough to warrant the existence of a Vertex ID node.

3 Likes

https://github.com/Unity-Technologies/Graphics/pull/3291
it’s available in Shader graph 12.0.0, 2021.2.0a9 allows it

2 Likes

is this a big deal type change? or is there any chance it could be backported to HDRP 10? i’m having to use the UV copied from a script bodge right now.