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

convert function

Converts one GLSL stage into a `GlslShader` module.

View as Markdown
import { convert } from '@dioramajs/glsl/convert'
function convert(source: string, options?: ConvertOptions): ConvertResult

Parameters

NameTypeDescription
sourcestring
options?ConvertOptions

Default {}.

  • Throws With every error diagnostic of the stage; diagnostics holds the codes.

Defined in packages/glsl/src/convert/index.ts.