summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-09-01 21:08:45 +0200
committerraysan5 <[email protected]>2020-09-01 21:08:45 +0200
commit05cdaf7d0153c8847a651334265eafd67fff21b2 (patch)
treef941d212c770de8e8fb724c0b9b861587ffbb92d /src/core.c
parenta1422ba1c16c74a39793f95f73f1228eeca71f38 (diff)
downloadraylib-05cdaf7d0153c8847a651334265eafd67fff21b2.tar.gz
raylib-05cdaf7d0153c8847a651334265eafd67fff21b2.zip
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index f40e487e..32eaa70f 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1633,13 +1633,13 @@ Ray GetMouseRay(Vector2 mouse, Camera camera)
}
// Unproject far/near points
- Vector3 nearPoint = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 0.0f }, matProj, matView);
- Vector3 farPoint = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView);
+ Vector3 nearPoint = Vector3Unproject((Vector3){ deviceCoords.x, deviceCoords.y, 0.0f }, matProj, matView);
+ Vector3 farPoint = Vector3Unproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView);
// Unproject the mouse cursor in the near plane.
// We need this as the source position because orthographic projects, compared to perspect doesn't have a
// convergence point, meaning that the "eye" of the camera is more like a plane than a point.
- Vector3 cameraPlanePointerPos = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, -1.0f }, matProj, matView);
+ Vector3 cameraPlanePointerPos = Vector3Unproject((Vector3){ deviceCoords.x, deviceCoords.y, -1.0f }, matProj, matView);
// Calculate normalized direction vector
Vector3 direction = Vector3Normalize(Vector3Subtract(farPoint, nearPoint));