QtCraft API C++ classes QML types Handbook

QcWaterFrame Struct

What one frame's water is drawn with. More...

Header: #include <clientcore/light/QcWaterLook.h>

Public Variables

QcVec3 camera
bool depthZeroToOne
QcShadowLight light
float seconds
QSize size
QcSkyState sky
bool textureYFollowsNdc
QMatrix4x4 viewProjection
QcRenderOptions::Water water

Detailed Description

Member Variable Documentation

QcVec3 QcWaterFrame::camera

The camera's world position.

QcShadowLight QcWaterFrame::light

The light of the shadows (QcShadowCascades::light): the water mirrors the same sun or moon, its glint follows the direction without steps (QcShadowLight::sun).

float QcWaterFrame::seconds

The waves' time (FrameInput::waterSeconds).

QSize QcWaterFrame::size

The scene's size in pixels.

QcSkyState QcWaterFrame::sky

Sky colours and daylight of the frame.

QMatrix4x4 QcWaterFrame::viewProjection

Projection x the camera's rotation the scene is drawn with.

QcRenderOptions::Water QcWaterFrame::water

The water settings of the render mode.