|
Toast Engine
|

Functions | |
| auto | assets::decodeHdr (std::span< const uint8_t > bytes) -> HdrImage |
| Decodes a Radiance .hdr image held in memory. | |
|
nodiscard |
Decodes a Radiance .hdr image held in memory.
Radiance is the format essentially every free environment library ships, and it decodes to linear radiance directly - no transfer function to undo and no exposure baked in, which is exactly what an environment map has to be. It is read here rather than converted to KTX2 at import: toktx only ingests PNG, so a KTX2 route would need the library driven directly, and a format this simple does not earn that
| bytes | Whole file contents |
bytes is not a readable HDR