diff options
Diffstat (limited to 'src/rcore.c')
| -rw-r--r-- | src/rcore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rcore.c b/src/rcore.c index 024f0d12..5e45a49a 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1407,13 +1407,13 @@ void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) //---------------------------------------------------------------------------------- // Get a ray trace from mouse position -Ray GetMouseRay(Vector2 mousePosition, Camera camera) +Ray GetScreenToWorldRay(Vector2 mousePosition, Camera camera) { - return GetViewRay(mousePosition, camera, (float)GetScreenWidth(), (float)GetScreenHeight()); + return GetScreenToWorldRayEx(mousePosition, camera, (float)GetScreenWidth(), (float)GetScreenHeight()); } // Get a ray trace from the mouse position within a specific section of the screen -Ray GetViewRay(Vector2 mousePosition, Camera camera, float width, float height) +Ray GetScreenToWorldRayEx(Vector2 mousePosition, Camera camera, float width, float height) { Ray ray = { 0 }; |
