const ValueShader: LiveComponent<ValueShaderProps>
Map the values inside a data source.
The provided shader is combined with the source's getter and must have the same return type, i.e. (t: T) -> T.
Unnamed arguments are linked in the order of: args, sources, source | data.
TensorArray
StorageSource | LambdaSource
ShaderModule
ShaderSource[]
any[]
( source: LambdaSource, ) => LiveElement
( source: LambdaSource, ) => LiveElement
packages / workbench / src / shader / value-shader.ts