LoaderOptions interface
Options of the webpack and Turbopack loader.
import type { LoaderOptions } from '@dioramajs/glsl/loader'interface LoaderOptions extends Omit<ConvertOptions, 'filename' | 'name' | 'include'>Members
| Name | Type | Description |
|---|---|---|
readonly bindings? | { [uniform: string]: Binding } | Binding overrides by GLSL uniform name. |
readonly colorSpace? | 'srgb' | 'linear' | Colour space of the output. |
readonly defaults? | { [uniform: string]: ParamDefault } | Default values of params by GLSL uniform name. |
readonly dialect? | 'auto' | 'three' | 'glsl3' | 'shadertoy' | GLSL flavour. |
readonly mode? | LoaderMode | Defaults to the import query, else 'shader'. |
readonly outDir? | string | Folder of the generated module, for relative |
readonly stage? | 'auto' | 'uv' | 'color' | 'position' | What the shader changes. |
Defined in packages/glsl/src/loader.ts.