Skip to content

raisin::RayraiWindow::RenderOverrides ​

struct · #include <rayrai/RayraiWindow.hpp>

Override shaders and rendering toggles when using external cameras.

For Camera-based external renders, drawVisualizationObjects and drawPointClouds enable only custom visuals, instanced visuals, and point clouds marked VisualCategory::Detectable. Non-detectable helper geometry remains visible in the normal interactive viewer but is skipped by these capture paths. The RaiSim RGB/depth sensor-camera overloads disable custom visualization objects and point clouds entirely, regardless of these toggles.

Public attributes ​

mesh ​

cpp
Shader *mesh

Mesh shader override (defaults to shaders_["mesh"]).

pointcloud ​

cpp
Shader *pointcloud

Point cloud shader override (defaults to shaders_["pointcloud"]).

picking ​

cpp
Shader *picking

Picking shader override (defaults to shaders_["picking"]).

post ​

cpp
Shader *post

Post-process shader override (defaults to shaders_["post"]).

doShadows ​

cpp
bool doShadows

Enable shadow passes.

drawCoordinateFrames ​

cpp
bool drawCoordinateFrames

Draw coordinate frames.

drawPointClouds ​

cpp
bool drawPointClouds

Draw point clouds that are marked detectable in external-camera captures.

drawVisualizationObjects ​

cpp
bool drawVisualizationObjects

Draw custom visuals and instanced visuals that are marked detectable.

drawWeatherEffects ​

cpp
bool drawWeatherEffects

Draw viewer-only weather effects such as precipitation particles.

skipGroundObjects ​

cpp
bool skipGroundObjects

Skip halfspace and heightmap ground objects in scene-color rendering.

environmentBackgroundMap ​

cpp
unsigned int environmentBackgroundMap

Optional cubemap rendered as a viewer background before scene geometry.

environmentBackgroundExposure ​

cpp
float environmentBackgroundExposure

Exposure applied to environmentBackgroundMap when rendered as background.

postProcess ​

cpp
bool postProcess

Apply external-camera postprocessing after rendering.

allowViewerMsaa ​

cpp
bool allowViewerMsaa

Allow quality preset MSAA for this external render. Sensor overloads force this off.

allowTemporalAa ​

cpp
bool allowTemporalAa

Allow quality preset temporal AA for this external render. Sensor overloads force this off.

allowViewerUpscale ​

cpp
bool allowViewerUpscale

Allow quality preset lower-resolution viewer rendering followed by upscale.

fixedShadowCenterEnabled ​

cpp
bool fixedShadowCenterEnabled

Use fixedShadowCenter instead of the camera-derived directional shadow center, so offline multi-view captures share one shadow region. Uses one cascade; normal shadow dirty tracking remains active.

fixedShadowCenter ​

cpp
glm::vec3 fixedShadowCenter

World-space directional shadow center used when fixedShadowCenterEnabled is true.

RaiSim — physics for robotics and AI.