method
method:
| "uniform1f"
| "uniform1i"
| "uniform2f"
| "uniform2i"
| "uniform3f"
| "uniform3i"
| "uniform4f"
| "uniform4i"
| "uniform1fv"
| "uniform1iv"
| "uniform2fv"
| "uniform2iv"
| "uniform3fv"
| "uniform3iv"
| "uniform4fv"
| "uniform4iv"
| "uniformMatrix2fv"
| "uniformMatrix3fv"
| "uniformMatrix4fv"
Optional
name
name?: string
Optional
size
size?: ((value: Record<string, unknown>) => number)
Optional
updateOnBind
updateOnBind?: boolean
Optional
updateProgramValue
updateProgramValue?: ((programValues: ShaderEffectValueMap,
shaderProps?: Record<string, unknown>) => void) Optional
validator
validator?: ((value: any, props: Record<string, unknown>) => number | number[] | number[][])
value
value:
| string
| number
| boolean
| number[]