From 29b49685be137e7bbacb641ae3f0f9e88fc69ca1 Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 25 Apr 2026 05:29:59 +0300 Subject: [PATCH] fix --- include/omath/projection/camera.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/projection/camera.hpp b/include/omath/projection/camera.hpp index e957954..28e9703 100644 --- a/include/omath/projection/camera.hpp +++ b/include/omath/projection/camera.hpp @@ -331,7 +331,7 @@ namespace omath::projection const auto c2 = to_clip(triangle.m_vertex3); // If all vertices are behind the camera (w <= 0), trivially reject - if (c0[3] <= 0.f && c1[3] <= 0.f && c2[3] <= 0.f) + if (c0[3] <= NumericType{0} && c1[3] <= NumericType{0} && c2[3] <= NumericType{0}) return true; // Helper: all three vertices outside the same clip plane