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

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).

Parameters

shape

SDFShape

uv

string

size

string

attributeExpr?

(attr) => string

Returns

string