QtCraft API C++ classes QML types Handbook

QcShadowLight Struct

The light that casts the shadows of a frame (decision E-903): the sun by day, the moon (weaker) by night, faded out near the horizon and under clouds so that the switch between them is never seen. More...

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

Public Variables

QVector3D litTint
QVector3D shadowTint
float strength
QVector3D sun
QVector3D toLight

Detailed Description

Member Variable Documentation

float QcShadowLight::strength

How much the shadows darken: 0 none (the classic brightness everywhere), 1 a shadowed surface keeps shadowFloor of its sky light.

QVector3D QcShadowLight::sun

Unit vector towards the light without steps: how surfaces turn to it (facing, relief, highlights, the water's glint).

QVector3D QcShadowLight::toLight

Unit vector towards the light (x east, y up, z south) in steps (QcShadowCascades::stepped, decision E-960): the direction of the shadow map and of its lookups.