# ShaderFunction

type in `@dioramajs/diorama/glsl`

```ts
import type { ShaderFunction } from '@dioramajs/diorama/glsl'
```

TSL body of a GLSL prototype, called with the arguments in GLSL order. Their node types are
known only in the shader, so an argument fits any TSL call; annotate it to narrow it:
`(p: Node<'vec2'>) => …`.

```ts
type ShaderFunction = (...args: any[]) => Node
```

Also exported from `@dioramajs/glsl`.

Defined in [packages/glsl/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/glsl/src/types.ts#L123).
