Move Light struct to example

This commit is contained in:
raysan5 2016-01-25 13:39:23 +01:00
parent 3113a20390
commit d0ff78e7f4
4 changed files with 27 additions and 3 deletions

View file

@ -938,6 +938,12 @@ Vector2 WorldToScreen(Vector3 position, Camera camera)
return screenPosition;
}
// Get transform matrix for camera
Matrix GetCameraMatrix(Camera camera)
{
return MatrixLookAt(camera.position, camera.target, camera.up);
}
//----------------------------------------------------------------------------------
// Module Functions Definition - Input (Keyboard, Mouse, Gamepad) Functions
//----------------------------------------------------------------------------------