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

ShaderInput type

Built-in inputs a uniform can bind to, as `input:<name>`.

View as Markdown
import type { ShaderInput } from '@dioramajs/diorama/glsl'
type ShaderInput = 'time' | 'hoverTime' | 'hover' | 'progress' | 'velocity' | 'pin'
| 9 more | 'motion' | 'pointer' | 'pointerNdc' | 'pointerPx' | 'mouse4' | 'size' | 'size3' | 'sizePx' | 'sizePx3'

Also exported from @dioramajs/glsl.

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