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

ShaderGenerationOptions

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

Properties

layers

layers: FragmentLayer[]

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


rotateWithCamera?

optional rotateWithCamera?: boolean

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


shapeGlobalIds?

optional shapeGlobalIds?: number[]

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

Array mapping local shape index to global shape ID. Required for multi-shape programs to convert global IDs from node data texture to local indices for the queryNodeSDF switch statement.


shapes

shapes: SDFShape[]

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

Array of SDF shapes this program supports. For single-shape programs, pass an array with one element.