Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

GlslPluginOptions interface

Options of the `glsl` Vite plugin.

View as Markdown
import type { GlslPluginOptions } from '@dioramajs/glsl/vite'
interface GlslPluginOptions

Members

NameTypeDescription
readonly check?'all' | 'imported'

Dev: 'all' checks every matching file, not just imported ones. Default 'all'.

readonly convert?Omit<ConvertOptions, 'name' | 'filename' | 'include'>

Convert options for every file. Pragmas in the file override them.

readonly dts?string | boolean

Write diorama-glsl.d.ts (or the given path) with per-file param types. Default false.

readonly include?RegExp

Shader files to handle. Default /\.(frag|vert|glsl|fs|vs)$/.

readonly report?'none' | 'bindings'

Dev: log each file's uniform bindings on first load. Default 'bindings'.

readonly strict?boolean

Fail vite build on warnings. Default false.

Defined in packages/glsl/src/vite.ts.