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

glslEntries function

Turns `import.meta.glob('./effects/*.frag', { query: '?entry', import: 'default', eager: true })` into a registry keyed by effect name.

View as Markdown
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 }): EffectEntries

Parameters

NameTypeDescription
modules{ [path: string]: EffectEntry }

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