generateVertexShader
generateVertexShader(
shapes,layers):string
Defined in: packages/sigma/src/rendering/nodes/generator.ts:74
Generates vertex shader for a quad with UV coordinates. Always renders a single quad (4 vertices) per node using instanced rendering.
Parameters
Section titled “Parameters”shapes
Section titled “shapes”SDFShape[]
Array of SDF shapes this program supports
layers
Section titled “layers”Array of fragment layers
Whether a node’s shape stays screen-upright or turns with the camera is a
per-node value (the nodeRotation flag in the node-data texture), read here.
Returns
Section titled “Returns”string