Make culling distances consistent across raylib

This commit is contained in:
Nikolas 2025-08-05 00:15:52 +02:00
commit 7267c1c8a1
No known key found for this signature in database
GPG key ID: E95F679E3CDD9784
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