We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcbb5c1 commit 04203d4Copy full SHA for 04203d4
1 file changed
include/omath/projection/camera.hpp
@@ -405,10 +405,10 @@ namespace omath::projection
405
constexpr static bool is_ndc_z_value_out_of_bounds(const ZType& z_ndc) noexcept
406
{
407
constexpr auto eps = std::numeric_limits<float>::epsilon();
408
+ if constexpr (depth_range == NDCDepthRange::NEGATIVE_ONE_TO_ONE)
409
+ return z_ndc < -1.0f - eps || z_ndc > 1.0f + eps;
410
if constexpr (depth_range == NDCDepthRange::ZERO_TO_ONE)
411
return z_ndc < 0.0f - eps || z_ndc > 1.0f + eps;
- if constexpr (depth_range == NDCDepthRange::ZERO_TO_ONE)
- return z_ndc < -1.0f - eps || z_ndc > 1.0f + eps;
412
413
std::unreachable();
414
}
0 commit comments