Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

generateSDFCall

generateSDFCall(shape, uv, size, attributeExpr?): string

Defined in: packages/sigma/src/rendering/nodes/shapes/instance-registry.ts:43

Builds a sdf_{name}(...) call: float uniforms baked as literals, then each attribute as attributeExpr(attr) (the v_<name> varying by default).

SDFShape

string

string

(attr) => string

string