ShaderFunction type
TSL body of a GLSL prototype, called with the arguments in GLSL order.
import type { ShaderFunction } from '@dioramajs/diorama/glsl'Their node types are known only in the shader, so an argument fits any TSL call; annotate it to narrow it: (p: Node<'vec2'>) => ….
type ShaderFunction = (...args: any[]) => NodeAlso exported from @dioramajs/glsl.
Defined in packages/glsl/src/types.ts.