Engine → Renderer → environment_asset.h
cubemap_data
| Type | Struct |
| Namespace | conjure::renderer |
| Include File Path | engine/include/conjure/renderer/environment_asset.h |
| Source File Path | engine/src/renderer/assets/environment_asset.cpp |
| API ↗ | Rendering, Renderer assets |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | mipCount | u32 | 0 | |
| public | size | u32 | 0 | |
| public | texels | std::vector<u16> | {} |
Functions
Public
face_length
face_lengthNumber of halves one face of a mip occupies.
face_offset
face_offsetIndex of the first half of a face of a mip inside texels.
is_consistent
is_consistent[[nodiscard]] bool is_consistent() const noexcept;True when texels has exactly the length the size and mip count imply.
texel
texel[[nodiscard]] math::vec3 texel(
u32 mip,
u32 face,
u32 x,
u32 y) const noexcept;The RGB radiance of a texel.