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

Non realistic projection where all objects lines are orthogonal to the projection plane giving the idea that all faces are at the same distance to the viewer. 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

float left
 Left frustum plane distance.
 
float right
 Right frustum plane distance.
 
float bottom
 Bottom frustum plane distance.
 
float top
 Top frustum plane distance.
 
float near
 Near place distance.
 
float far
 Far place distance.
 

Detailed Description

Non realistic projection where all objects lines are orthogonal to the projection plane giving the idea that all faces are at the same distance to the viewer.

Note
Mainly used for shadow maps or technical drawings

Member Data Documentation

◆ far

float oe::scene::OrthographicProjection::far

Far place distance.

Objects further than this distance won't be rendered

◆ near

float oe::scene::OrthographicProjection::near

Near place distance.

Objects closer than this distance won't be rendered


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