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

@dioramajs/glsl/entries

A folder of shader entries as an effect registry.

View as Markdown
import { glslEntries } from '@dioramajs/glsl/entries'

Functions

glslEntriesTurns `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.