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[]
any[]
( source: LambdaSource, ) => LiveElement
( source: LambdaSource, ) => LiveElement
packages / workbench / src / shader / value-shader.ts