Shaders are broken up into multiple stages. A typical shader graph is broken up into a Vertex stage, and a Fragment stage (vert, frag).
The vertex stage controls the position, normals, and tangents, of vertices.
The fragment stage approximates the pixels on the screen.
Shader Graph requires the networks that make up these stages to be separated.
Some nodes are also incompatible with the vertex stage.
Sample Texture 2D
node can only be used in the frag stage. Instead use a Sample Texture 2D LOD
node.Checkerboard
node uses ddx
and ddy
, both of which are fragment stage only.Visit the documentation, and search for complex nodes in your networks to understand whether they are valid.