Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::PerspectiveProjection Struct Reference

Realistic projection where distant objects appear smaller than closer objects. More...

#include <OxygenEngine/scene/camera_projections.h>

Collaboration diagram for oe::scene::PerspectiveProjection:
[legend]

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.
 

Detailed Description

Realistic projection where distant objects appear smaller than closer objects.

Member Data Documentation

◆ aspect_ratio

float oe::scene::PerspectiveProjection::aspect_ratio

Screen/Buffer ratio.

can be obtained by computing width/height of the window / framebuffer

◆ far

float oe::scene::PerspectiveProjection::far

Far place distance.

Objects further than this distance won't be rendered

◆ near

float oe::scene::PerspectiveProjection::near

Near place distance.

Objects closer than this distance won't be rendered


The documentation for this struct was generated from the following file: