Fix camera cut flag in rendering to not trigger on origin change for smother visuals

This commit is contained in:
Wojtek Figat
2025-10-03 22:20:58 +02:00
parent 4f45b3c1d0
commit 6ae370f8fc
3 changed files with 10 additions and 4 deletions

View File

@@ -265,6 +265,14 @@ public:
return Projection.M44 >= 1.0f;
}
/// <summary>
/// Determines whether view Origin has been moved in this frame. Old history buffers/data might be invalid.
/// </summary>
FORCE_INLINE bool IsOriginTeleport() const
{
return Origin != PrevOrigin;
}
public:
// Ignore deprecation warnings in defaults
PRAGMA_DISABLE_DEPRECATION_WARNINGS