Skip to content

raisin::WaterDiagnostics ​

struct · #include <rayrai/Water.hpp>

Renderer state of the water bodies (RayraiWindow::waterDiagnostics()).

Describes the last color render of the scene. Everything but bodyCount is zero (false) when that render had no water body in view and the camera was not under water.

Public attributes ​

bodyCount ​

cpp
size_t bodyCount

Registered water bodies.

bodiesDrawn ​

cpp
size_t bodiesDrawn

Bodies drawn.

tilesDrawn ​

cpp
size_t tilesDrawn

Surface mesh tiles drawn.

trianglesDrawn ​

cpp
size_t trianglesDrawn

Triangles of the surface mesh drawn per pass over it (the mesh is drawn once per render, and once more to compose multisampled edges).

sceneCaptured ​

cpp
bool sceneCaptured

The scene color and depth were copied for refraction.

screenSpaceReflections ​

cpp
bool screenSpaceReflections

On-screen objects were reflected.

cameraUnderwater ​

cpp
bool cameraUnderwater

The camera was inside a body: below its surface (and above a rectangle's bottom).

underwaterFogDrawn ​

cpp
bool underwaterFogDrawn

The underwater view pass ran (needs RenderQualitySettings::waterUnderwaterView).

skyCaptureFaceSize ​

cpp
int skyCaptureFaceSize

Face size of the reflected sky cubemap, pixels.

skyCaptures ​

cpp
size_t skyCaptures

Times the reflected sky cubemap was drawn; it is kept while the sky it reflects is unchanged.

timeSeconds ​

cpp
double timeSeconds

Water time of the render.

flowBodies ​

cpp
size_t flowBodies

Simulated bodies (WaterFlow) updated for the render.

flowSteps ​

cpp
size_t flowSteps

Simulation steps the update took, over all simulated bodies.

flowTimeDropped ​

cpp
double flowTimeDropped

Water time the simulations skipped because catching up needed more steps than one render takes (a stalled or very slow frame), seconds.

RaiSim — physics for robotics and AI.