raisin::FoliageTextureAtlasResult
struct · #include <rayrai/FoliageTextureAtlas.hpp>
Outcome of buildFoliageTextureAtlasForMeshes().
Public attributes
used
cpp
bool usedAt least one mesh now samples the atlas.
candidateMeshCount
cpp
std::size_t candidateMeshCountFoliage meshes eligible for the atlas.
atlasedMeshCount
cpp
std::size_t atlasedMeshCountMeshes rewritten to use the atlas.
uniqueAlbedoTextureCount
cpp
std::size_t uniqueAlbedoTextureCountDistinct albedo textures among candidates.
uniqueNormalTextureCount
cpp
std::size_t uniqueNormalTextureCountDistinct normal maps among candidates.
albedoAtlas
cpp
unsigned int albedoAtlasGL texture of the albedo atlas (0 if not built).
normalAtlas
cpp
unsigned int normalAtlasGL texture of the normal atlas (0 if no candidate has one).
atlasWidth
cpp
int atlasWidthAtlas width in pixels.
atlasHeight
cpp
int atlasHeightAtlas height in pixels.
fallbackWarnings
cpp
std::vector<std::string> fallbackWarningsPer-mesh or global reasons for skipping.