# ConvertOptions

interface in `@dioramajs/glsl/convert`

```ts
import type { ConvertOptions } from '@dioramajs/glsl/convert'
```

Options of `convert`.

```ts
interface ConvertOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `bindings?` | `{ [uniform: string]: Binding }` | Binding overrides by GLSL uniform name. |
| `colorSpace?` | `'srgb' \| 'linear'` | Colour space of the output. |
| `defaults?` | `{ [uniform: string]: ParamDefault }` | Default values of params by GLSL uniform name. |
| `dialect?` | `'auto' \| 'three' \| 'glsl3' \| 'shadertoy'` | GLSL flavour. `auto` infers it from the code. |
| `filename?` | `string` | For messages and #include resolution. Default 'shader.glsl'. |
| `include?` | `IncludeReader` | Default reads files relative to `from` and resolves bare specifiers like Node. |
| `name?` | `string` | Default: kebab-case file stem. |
| `outDir?` | `string` | Folder of the generated module, for relative `@texture` URLs. Default: the shader's. |
| `stage?` | `'auto' \| 'uv' \| 'color' \| 'position'` | What the shader changes. `auto` infers it from the code. |

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