# @dioramajs/glsl/loader

webpack 5 and Turbopack loader for .frag files.

## Functions and values

- [default](/docs/api/glsl-loader/default.md): Webpack and Turbopack loader that turns GLSL files into TSL shaders and effects.

## Types

- [LoaderContext](/docs/api/glsl-loader/types/loader-context.md): The subset of webpack's loader context we use. Turbopack implements it too.
- [LoaderMode](/docs/api/glsl-loader/types/loader-mode.md): What an import returns: the shader, an effect, or a lazy registry entry.
- [LoaderOptions](/docs/api/glsl-loader/types/loader-options.md): Options of the webpack and Turbopack loader.
