Skip to content

raisin::FoliageTextureAtlasResult ​

struct · #include <rayrai/FoliageTextureAtlas.hpp>

Outcome of buildFoliageTextureAtlasForMeshes().

Public attributes ​

used ​

cpp
bool used

At least one mesh now samples the atlas.

candidateMeshCount ​

cpp
std::size_t candidateMeshCount

Foliage meshes eligible for the atlas.

atlasedMeshCount ​

cpp
std::size_t atlasedMeshCount

Meshes rewritten to use the atlas.

uniqueAlbedoTextureCount ​

cpp
std::size_t uniqueAlbedoTextureCount

Distinct albedo textures among candidates.

uniqueNormalTextureCount ​

cpp
std::size_t uniqueNormalTextureCount

Distinct normal maps among candidates.

albedoAtlas ​

cpp
unsigned int albedoAtlas

GL texture of the albedo atlas (0 if not built).

normalAtlas ​

cpp
unsigned int normalAtlas

GL texture of the normal atlas (0 if no candidate has one).

atlasWidth ​

cpp
int atlasWidth

Atlas width in pixels.

atlasHeight ​

cpp
int atlasHeight

Atlas height in pixels.

fallbackWarnings ​

cpp
std::vector<std::string> fallbackWarnings

Per-mesh or global reasons for skipping.

RaiSim — physics for robotics and AI.