Skip to content

Commit

Permalink
Fix frustum top plane calculation (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmodarelli authored Dec 22, 2022
1 parent 7cd2b15 commit 0aa79ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ void D3D12DynamicLOD::OnUpdate()
XMPlaneNormalize(XMVectorAdd(vp.r[3], vp.r[0])), // Left
XMPlaneNormalize(XMVectorSubtract(vp.r[3], vp.r[0])), // Right
XMPlaneNormalize(XMVectorAdd(vp.r[3], vp.r[1])), // Bottom
XMPlaneNormalize(XMVectorAdd(vp.r[3], vp.r[1])), // Top
XMPlaneNormalize(XMVectorSubtract(vp.r[3], vp.r[1])), // Top
XMPlaneNormalize(vp.r[2]), // Near
XMPlaneNormalize(XMVectorSubtract(vp.r[3], vp.r[2])), // Far
};
Expand Down

0 comments on commit 0aa79ba

Please sign in to comment.