Contents

SushiEngine

perspective

Matrix4 perspective(Float fovy_radians, Float aspect, Float near_plane, Float far_plane) noexcept

Parameters

NameTypeDescription
fovy_radiansFloat
aspectFloat
near_planeFloat

Near clip distance (> 0); the only precision knob.

far_planeFloat

Ignored (the far plane is at infinity).

Returns

Matrix4

Description

Builds a right-handed reverse-Z perspective projection with an infinite far plane.

Precondition

The pipeline clears depth to 0 and compares with GREATER_OR_EQUAL.

See also

engine/foundation/core/include/README.md