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

UniformSpecification

UniformSpecification = { name: string; type: "float" | "int" | "bool"; value: number; } | { name: string; type: "vec2"; value: Vec2; } | { name: string; type: "vec3"; value: Vec3; } | { name: string; type: "vec4"; value: Vec4; } | { name: string; type: "mat3"; value: Mat3; } | { name: string; type: "mat4"; value: Mat4; } | { name: string; type: "sampler2D"; value?: never; }

Defined in: packages/sigma/src/rendering/nodes/types.ts:23

Specification for a shader uniform with type-safe value.