🤔

Vertex and Fragment functions#

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.

Resolution#

  1. Don't cross-connect edges across the vert-frag networks. This may require you to duplicate some of your graph.
  2. Every node contributing to the vertex stage must be compatible.

    Some examples:#

    information

    Visit the documentation, and search for complex nodes in your networks to understand whether they are valid.

  3. Rebuild the graph node by node from the vert output until something fails to connect to the graph. This node will have to be replaced as it's likely not compatible with the vertex stage.