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

generateVertexShader

generateVertexShader(shapes, layers, rotateWithCamera?): string

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

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

rotateWithCamera?

boolean = false

Whether nodes should rotate with the camera (default: false)

Returns

string