createNodeProgram
createNodeProgram<
N,E,G>(gl,pickingBuffer,renderer,options,antialias):NodeProgramBundle<N,E,G>
Defined in: packages/sigma/src/rendering/nodes/factory.ts:51
Builds a node program suite from SDF shape(s) and fragment layers. The suite is a flat bundle of instances: the node program plus the matching label, backdrop, and label-background programs, alongside the shape registry metadata sigma needs for multi-shape programs.
Supports two modes:
- Single shape: a program that renders one shape type
- Multi-shape: a program that can render different shapes per node
Type Parameters
Section titled “Type Parameters”N extends Attributes = Attributes
E extends Attributes = Attributes
G extends Attributes = Attributes
Parameters
Section titled “Parameters”WebGL2RenderingContext
pickingBuffer
Section titled “pickingBuffer”WebGLFramebuffer | null
renderer
Section titled “renderer”Sigma<N, E, G>
options
Section titled “options”antialias
Section titled “antialias”boolean
Returns
Section titled “Returns”NodeProgramBundle<N, E, G>
{ nodeProgram, labelProgram, backdropProgram, labelBackgroundProgram, shapeSlug, shapeNameToIndex, shapeGlobalIds }