Model loading · interface
RadianceImage
An equirectangular image, linear, three floats a texel, row 0 at the top.
Explained in Importing models.
interface RadianceImageimport 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
| Name | Type | Description |
|---|---|---|
widthreadonly | number | |
heightreadonly | number | |
datareadonly | Float32Array | width * height * 3 linear values, row-major from the top. |