@dioramajs/glsl/vite
Vite plugin that turns .frag files into effects.
On this page
import { bindingTable, glsl } from '@dioramajs/glsl/vite'Functions
bindingTable | One line per file: `wave.frag: uTexture→media, uShade→param:shade, vWave→varying`. |
glsl | Vite plugin that turns GLSL files into TSL shaders and effects on import. |
Interfaces
GlslPluginOptions | Options of the `glsl` Vite plugin. |