diff options
| author | raysan5 <[email protected]> | 2020-09-01 21:08:45 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-01 21:08:45 +0200 |
| commit | 05cdaf7d0153c8847a651334265eafd67fff21b2 (patch) | |
| tree | f941d212c770de8e8fb724c0b9b861587ffbb92d /src/core.c | |
| parent | a1422ba1c16c74a39793f95f73f1228eeca71f38 (diff) | |
| download | raylib-05cdaf7d0153c8847a651334265eafd67fff21b2.tar.gz raylib-05cdaf7d0153c8847a651334265eafd67fff21b2.zip | |
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |
