const ValueShader: LiveComponent<ValueShaderProps>
Map the values inside a data source.
The provided shader is combined with the source's getter and must have a matching type, i.e. (t: SourceType) -> TargetType.
Unnamed arguments are linked in the order of: args, sources, source | data.
TensorArray
StorageSource | LambdaSource
ShaderModule
ShaderSource[]
args?
(Lazy< | boolean | number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[]>)[]
( source: LambdaSource, ) => LiveElement
( source: LambdaSource, ) => LiveElement
packages / workbench / src / shader / value-shader.ts