AdjustProjectionMatrixForRHI

Syntax

FMatrix AdjustProjectionMatrixForRHI
(
    const FMatrix & InProjectionMatrix
)

Remarks

Adjusts a projection matrix to output in the correct clip space for the current RHI. Unreal projection matrices follow certain conventions and need to be patched for some RHIs. All projection matrices should be adjusted before being used for rendering!

References

Module

RHI

Header

Runtime/RHI/Public/RHI.h