raisin::WaterSurfaceSample
struct · #include <rayrai/Water.hpp>
Surface of a water body at one horizontal position (sampleWaterSurface()).
Public attributes
inside
cpp
bool insideThe position lies within the body (always true for an ocean).
height
cpp
double heightWorld z of the surface above the position, metres.
normal
cpp
glm::vec3 normalWorld surface normal.
compression
cpp
float compressionHorizontal area of the surface relative to its rest area; below 1 at crests, below 0 where the surface folds over.