QtCraft API C++ classes QML types Handbook

QcShadowCascades::Basis Struct

struct QcShadowCascades::Basis

The light's axes: right and up span the shadow map, toLight points to the light. More...

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

Public Variables

QVector3D right
QVector3D toLight
QVector3D up

Detailed Description

right lies in the plane y-x the sun and moon cross (perpendicular to z), so the map turns only about that axis as the day goes on.

Member Variable Documentation

QVector3D Basis::right

Spans the shadow map, perpendicular to z.

QVector3D Basis::toLight

Unit vector towards the light.

QVector3D Basis::up

Spans the shadow map, perpendicular to right and toLight.