glslEntries function
Turns `import.meta.glob('./effects/*.frag', { query: '?entry', import: 'default', eager: true })` into a registry keyed by effect name.
import { glslEntries } from '@dioramajs/glsl/entries'. 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.
function glslEntries(modules: { [path: string]: EffectEntry }): EffectEntriesParameters
| Name | Type | Description |
|---|---|---|
modules | { [path: string]: EffectEntry } |
Defined in packages/glsl/src/entries.ts.