Search Unity

Feature Request Access to SV_VertexID from shadergraph

Discussion in 'Shader Graph' started by KillHour, Jul 19, 2019.

  1. KillHour


    Oct 25, 2015
    I've been working on modifying ShaderGraph to support rendering meshes created in compute shaders, and as far as I can tell, the only missing piece to allow me to do it with a custom function node is access to the vertex ID data so I can properly index the buffer. If this was exposed as a property, it would open up a ton of possibilities.
  2. andybak


    Jan 14, 2017
    There's been a couple of questions about SV_VertexID in Shader Graph and they all go unanswered. I want to create a mesh animation via either Shader Graph or the Visual FX graph but I'm stuck because it appears you can't SV_VertexID in Shader Graph - and you can't draw specific triangles in the Visual FX graph.

    Out of the two - the former seems like the biggest oversight and should be the simplest to fix.

    Could the Unity team give an indication that they are aware of this feature request and some hint of whether it's likely to be addressed?