Flashlight
This commit is contained in:
@@ -65,6 +65,7 @@ void Camera::updateDirectionFromMouseInput(float deltaCursorX, float deltaCursor
|
||||
if(pitch < -89.0f)
|
||||
pitch = -89.0f;
|
||||
|
||||
glm::vec3 direction;
|
||||
direction.x = cos(glm::radians(yaw)) * cos(glm::radians(pitch));
|
||||
direction.y = sin(glm::radians(pitch));
|
||||
direction.z = sin(glm::radians(yaw)) * cos(glm::radians(pitch));
|
||||
|
||||
Reference in New Issue
Block a user