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

ShaderFunction type

TSL body of a GLSL prototype, called with the arguments in GLSL order.

View as Markdown
import type { ShaderFunction } from '@dioramajs/diorama/glsl'

Their node types are known only in the shader, so an argument fits any TSL call; annotate it to narrow it: (p: Node<'vec2'>) => ….

type ShaderFunction = (...args: any[]) => Node

Also exported from @dioramajs/glsl.

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