Model loading · interface

RadianceImage

An equirectangular image, linear, three floats a texel, row 0 at the top.

Explained in Importing models.

interface RadianceImage
import type { RadianceImage } from '@driftengine/assets';

In depth

Three rather than four because an environment has no alpha and never will: the fourth channel would be a byte a texel of ones, and at 2048x1024 that is eight megabytes of nothing.

Properties

NameTypeDescription
widthreadonlynumber
heightreadonlynumber
datareadonlyFloat32Arraywidth * height * 3 linear values, row-major from the top.