~ | ImGui camera modification

This commit is contained in:
TheRedShip
2025-01-12 17:51:26 +01:00
parent 3f7eb5e05a
commit fec85708b6
7 changed files with 74 additions and 31 deletions

View File

@ -100,11 +100,6 @@ glm::vec2 Camera::getDirection()
return (glm::vec2(_pitch, _yaw));
}
glm::vec3 Camera::getViewSetting()
{
return (glm::vec3(_aperture_size, _focus_distance, _fov));
}
GPUCamera Camera::getGPUData()
{
GPUCamera data;
@ -126,11 +121,26 @@ float Camera::getVelocity()
return (glm::length(_velocity));
}
int Camera::getBounce()
int &Camera::getBounce()
{
return (_bounce);
}
float &Camera::getFov()
{
return (_fov);
}
float &Camera::getAperture()
{
return (_aperture_size);
}
float &Camera::getFocus()
{
return (_focus_distance);
}
void Camera::setPosition(glm::vec3 position)
{
_position = position;