Skip to content

Commit

Permalink
Tutorial 29: tighten projection matrix near/far planes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Dec 30, 2024
1 parent 54abe38 commit 61f6d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tutorials/Tutorial29_OIT/src/Tutorial29_OIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void Tutorial29_OIT::Update(double CurrTime, double ElapsedTime)
float4x4 SrfPreTransform = GetSurfacePretransformMatrix(float3{0, 0, 1});

// Get projection matrix adjusted to the current screen orientation
m_ProjMatrix = GetAdjustedProjectionMatrix(PI_F / 4.0f, 0.1f, 10.f);
m_ProjMatrix = GetAdjustedProjectionMatrix(PI_F / 4.0f, 1.f, 5.f);

// Compute view-projection matrix
m_ViewProjMatrix = View * SrfPreTransform * m_ProjMatrix;
Expand Down

0 comments on commit 61f6d49

Please sign in to comment.