Skip to content

API Variable CUBEMAP_FORMAT

github-actions[bot] edited this page Nov 24, 2026 · 3 revisions

Variable: CUBEMAP_FORMAT

const CUBEMAP_FORMAT: "myco.cubemap@1" = "myco.cubemap@1";

Defined in: src/engine/sky/cubemapFormat.ts:14

Six-image cubemap assets (ADR 0113): *.cubemap.json names one image per cube face, for skies and environment lighting from the many skyboxes sold as six PNG or JPEG files.

{ "format": "myco.cubemap@1", "px": "skies/right.png", "nx": "skies/left.png",
  "py": "skies/up.png", "ny": "skies/down.png", "pz": "skies/front.png", "nz": "skies/back.png" }

Faces follow the usual OpenGL naming: px/nx are +X/-X, py/ny up/down, pz/nz +Z/-Z (the World's east/west, up/down and north/south; +Z is forward, ADR 0164). Paths are project asset paths (an asset: prefix is allowed).

Clone this wiki locally