Review spacing for cosistency
This commit is contained in:
parent
afda1d0815
commit
76a6bf6c52
1 changed files with 6 additions and 12 deletions
10
src/core.c
10
src/core.c
|
@ -1057,14 +1057,8 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
|
|||
// Calculate normalized direction vector
|
||||
Vector3 direction = Vector3Normalize(Vector3Subtract(farPoint, nearPoint));
|
||||
|
||||
if(camera.type == CAMERA_PERSPECTIVE)
|
||||
{
|
||||
ray.position = camera.position;
|
||||
}
|
||||
else if(camera.type == CAMERA_ORTHOGRAPHIC)
|
||||
{
|
||||
ray.position = cameraPlanePointerPos;
|
||||
}
|
||||
if (camera.type == CAMERA_PERSPECTIVE) ray.position = camera.position;
|
||||
else if (camera.type == CAMERA_ORTHOGRAPHIC) ray.position = cameraPlanePointerPos;
|
||||
|
||||
// Apply calculated vectors to ray
|
||||
ray.direction = direction;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue