nw::gfx::SceneHelper::CalculateDepth Member Function

Syntax

static float CalculateDepth(
     const math::VEC3 & localPosition,
     const math::MTX34 & worldMatrix,
     const Camera & camera
);

Arguments

Name Description
localPosition
worldMatrix
camera

Return Values

Description

Calculates the depth in clip coordinates.


CONFIDENTIAL