Skip to content

WasmGPU.createCamera

Summary

WasmGPU.createCamera is the camera factory facade. It creates perspective and orthographic cameras; shared camera behavior remains under the createCamera.* documentation family, while projection-specific members remain beneath their factory path.

Canonical documentation namepaths use createCamera.* for the directly traversable camera factories, createCamera.*#* for variant-specific instance members, and createCamera#* for members shared by returned camera variants.

Syntax

const perspective = wgpu.createCamera.perspective({ fov: 60 });
const orthographic = wgpu.createCamera.orthographic();

Available APIs

See Also