Skip to content

raisin::InstancedVisuals::FoliageImpostorDiagnostics ​

struct · #include <rayrai/Visuals.hpp>

Internal (diagnostics): last foliage-impostor decision.

Public attributes ​

enabled ​

cpp
bool enabled

The policy is enabled.

applicable ​

cpp
bool applicable

The batch qualified for the path in the last pass.

used ​

cpp
bool used

The path was used in the last pass.

authoredInstanceCount ​

cpp
size_t authoredInstanceCount

Instances in the batch.

renderedInstanceCount ​

cpp
size_t renderedInstanceCount

Instances after the setMaxRenderedInstances() cap; per-instance foliage draws report the instances they submit, before any occlusion test done on the GPU.

candidateInstanceCount ​

cpp
size_t candidateInstanceCount

Instances left after the active stride.

sourceTrianglesPerInstance ​

cpp
size_t sourceTrianglesPerInstance

Triangles per instance of the source mesh.

impostorTrianglesPerInstance ​

cpp
size_t impostorTrianglesPerInstance

Triangles per instance of the impostor.

nearestDistance ​

cpp
float nearestDistance

Distance from the camera to the batch bounds (m).

projectedRadiusPixels ​

cpp
float projectedRadiusPixels

Projected source-mesh radius in pixels.

fallbackCode ​

cpp
uint32_t fallbackCode

0, or why the path was skipped (text via the matching last...ReasonForDiagnostics()).

RaiSim — physics for robotics and AI.