# glsl

function in `@dioramajs/glsl/vite`

```ts
import { glsl } from '@dioramajs/glsl/vite'
```

Vite plugin that turns GLSL files into TSL shaders and effects on import.

```ts
function glsl(options?: GlslPluginOptions): Plugin
```

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | `GlslPluginOptions` |  |

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