Skip to content

raisin::InstancedVisuals::GpuHizOcclusionConfig ​

struct · #include <rayrai/Visuals.hpp>

Internal: hierarchical-Z occlusion input for the GPU culling draw() overload.

Public attributes ​

enabled ​

cpp
bool enabled

Use Hi-Z occlusion culling.

depthPyramidTexture ​

cpp
unsigned int depthPyramidTexture

GL 2D texture holding the depth pyramid (not owned).

width ​

cpp
int width

Width of pyramid level 0 in pixels.

height ​

cpp
int height

Height of pyramid level 0 in pixels.

mipLevels ​

cpp
int mipLevels

Number of pyramid levels.

depthEpsilon ​

cpp
float depthEpsilon

Depth tolerance for the occlusion test.

RaiSim — physics for robotics and AI.