Contents

SushiEngine

clip_space_w

Scalar clip_space_w(const Matrix4 &view_projection, const Vector3 &point) noexcept

Parameters

NameType
view_projectionconst Matrix4 &
pointconst Vector3 &

Returns

Scalar

The clip-space w; positive in front of the camera, negative behind it.

Description

Returns the homogeneous w a point projects with, its depth in front of the camera.

See also

engine/foundation/core/include/README.md