Can I access vertex id in Shader Graph?

Hi,

Is there anyway to access vertex id (UNITY_VERTEX_INPUT_INSTANCE_ID) in shader graph? I’m currently using vertex ids for baked animations and have working shader (hand-written HLSLProgram), but I would really like to use shader graph to create and modify those shaders.

I’m using latest beta and Universal RP 7.1.1

You could bake the vertex ID into the UV2 of your mesh, with a C# script. :wink:

3 Likes