Skip to content

raisin::RenderOverrides ​

struct · #include <rayrai/RenderOverrides.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, point clouds and coordinate frames entirely, regardless of these toggles; they also force MSAA, temporal AA and viewer upscaling off and set drawWeatherEffects from WeatherSettings::affectSensors.

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 weather screen effects such as precipitation particles (sensor overloads use WeatherSettings::affectSensors instead).

skipGroundObjects ​

cpp
bool skipGroundObjects

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

environmentBackgroundMap ​

cpp
unsigned int environmentBackgroundMap

Optional GL cubemap rendered as the background before scene geometry; 0 = none.

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 RenderQualitySettings::viewerRenderScale below 1 (render low-res, then upscale). Sensor overloads force this off.

RaiSim — physics for robotics and AI.