bindWebGLLayer
bindWebGLLayer<
P>(depth,renderer,ProgramClass,id?): () =>void
Defined in: packages/layer-webgl/src/bind-webgl-layer.ts:20
Binds a custom WebGL layer program to a Sigma instance.
depthis the depth layer to render at; it must be one of the renderer’s declareddepthLayers. Several layers may share the same depth.idoptionally identifies the layer. When omitted, a unique id is generated. Pass an explicit id to make repeated calls replace the layer instead of stacking new ones (e.g. when re-binding on every data change).
Returns a cleanup function that removes this layer.
Type Parameters
Section titled “Type Parameters”P extends PrimitivesDeclaration
Parameters
Section titled “Parameters”ExtractDepthLayersFromPrimitives<P>
renderer
Section titled “renderer”Sigma<any, any, any, any, any, any, P>
ProgramClass
Section titled “ProgramClass”string = ...
Returns
Section titled “Returns”() => void