generateFragmentShader
generateFragmentShader(
shapes,layers,shapeGlobalIds?):string
Defined in: packages/sigma/src/rendering/nodes/generator.ts:228
Generates fragment shader that applies SDF shape and layers.
Parameters
shapes
SDFShape[]
Array of SDF shapes this program supports
layers
Array of fragment layers
shapeGlobalIds?
number[]
Optional array mapping local shape index to global ID (for multi-shape programs)
The node’s shape rotation is applied by the vertex shader (quad geometry), so
the fragment SDF query (queryNodeSDF) is rotation-agnostic.
Returns
string