Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Realistic projection where distant objects appear smaller than closer objects. More...
#include <OxygenEngine/scene/camera_projections.h>
Public Member Functions | |
glm::mat4 | getProjectionMatrix () const noexcept |
Return a projection matrix computed from the settings. | |
Public Attributes | |
lit::Angle | fov |
Field of view. | |
float | aspect_ratio |
Screen/Buffer ratio. | |
float | near |
Near place distance. | |
float | far |
Far place distance. | |
Realistic projection where distant objects appear smaller than closer objects.
float oe::scene::PerspectiveProjection::aspect_ratio |
Screen/Buffer ratio.
can be obtained by computing width/height
of the window / framebuffer
float oe::scene::PerspectiveProjection::far |
Far place distance.
Objects further than this distance won't be rendered
float oe::scene::PerspectiveProjection::near |
Near place distance.
Objects closer than this distance won't be rendered