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

maxTextureSize function

Largest 2D texture side the device takes: the WebGPU device limit (8192 for three r187, which asks for default limits), WebGL 2 `MAX_TEXTURE_SIZE`, else 4096.

View as Markdown
import { maxTextureSize } from '@dioramajs/diorama/kit'

. Caps decodes of big pictures.

function maxTextureSize(ctx: Pick<EffectContext, 'render'>): number

Parameters

NameTypeDescription
ctxPick<EffectContext, 'render'>

Also exported from @dioramajs/effects/kit.

Defined in packages/effects/src/kit.ts.