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

ConvertResult interface

What `convert` returns.

View as Markdown
import type { ConvertResult } from '@dioramajs/glsl/convert'
interface ConvertResult

Members

NameTypeDescription
readonly codestring

The TSL module.

readonly declarationstring

The companion .d.ts, with exact param types.

readonly diagnosticsreadonly GlslDiagnostic[]

Warnings and infos. Errors throw GlslError.

readonly includesreadonly string[]

Included files, to watch.

readonly shaderOmit<GlslShader, 'build'>

Shader metadata, as the module exports it.

readonly stats{ readonly fixes: number; readonly glslLines: number; readonly tslLines: number }

Line counts and the number of fixes applied.

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