@dioramajs/glsl/entries
A folder of shader entries as an effect registry.
import { glslEntries } from '@dioramajs/glsl/entries'Functions
glslEntries | Turns `import.meta.glob('./effects/*.frag', { query: '?entry', import: 'default', eager: true })` into a registry keyed by effect name. A `.vert` with the same stem as a `.frag` belongs to that effect and gets no key of its own. Two files that map to one name throw. |