Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

generateVertexShader

generateVertexShader(shapes, layers): string

Defined in: packages/sigma/src/rendering/nodes/generator.ts:46

Generates vertex shader for a quad with UV coordinates. Always renders a single quad (4 vertices) per node using instanced rendering.

Parameters

shapes

SDFShape[]

Array of SDF shapes this program supports

layers

FragmentLayer[]

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

string