Make culling distances consistent across raylib

This commit is contained in:
Nikolas
2025-08-05 00:15:52 +02:00
parent f5e95029b1
commit 7267c1c8a1
3 changed files with 5 additions and 5 deletions

View File

@@ -1530,7 +1530,7 @@ Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height
double right = top*aspect;
// Calculate projection matrix from orthographic
matProj = MatrixOrtho(-right, right, -top, top, 0.01, 1000.0);
matProj = MatrixOrtho(-right, right, -top, top, rlGetCullDistanceNear(), rlGetCullDistanceFar());
}
// Unproject far/near points