raisin::FoliageMeshLodBaker::Tile
struct · #include <rayrai/FoliageMeshLodBaker.hpp>
One baked cell: its source placements and the resulting LOD meshes and atlases.
Constructors & destructor
Tile
cpp
explicit Tile(raisin::StreamedFoliage::Placements p)Take ownership of per-species placements.
~Tile
cpp
~Tile()Public attributes
roots
cpp
raisin::StreamedFoliage::Placements rootsSource placements per species; cleared once baked.
center
cpp
glm::vec3 centerWorld AABB of the placements, its center and padded diagonal (capture extent).
boundsMin
cpp
glm::vec3 boundsMinboundsMax
cpp
glm::vec3 boundsMaxdiameter
cpp
float diametergeometry
cpp
std::array<Geometry, levelCount> geometryAccumulating CPU geometry (scratch).
levels
cpp
std::array<Meshes, levelCount> levelsFinished meshes, finest first.
texture
cpp
unsigned texturenormal
cpp
unsigned normalGL albedo and normal atlases owned by the tile.
installedErrors
cpp
mutable std::optional<std::array<float, levelCount>> installedErrorsError budgets of the first install(); later installs must match.
cacheKey
cpp
uint64_t cacheKeyPrepared-cache key (0 without a cache).
colors
cpp
std::vector<glm::vec4> colorsnormals
cpp
std::vector<glm::vec4> normalsdepth
cpp
std::vector<float> depthPer-face capture scratch.