|
@@ -1530,7 +1530,7 @@ Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height
|
|
double right = top*aspect;
|
|
double right = top*aspect;
|
|
|
|
|
|
// Calculate projection matrix from orthographic
|
|
// 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
|
|
// Unproject far/near points
|