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

Special case of perspective projection where you need to provide frustum extents. 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

Special case of perspective projection where you need to provide frustum extents.

Note
Use this class if you need off-center perspective. otherwise you may prefer PerspectiveProjection

Member Data Documentation

◆ far

float oe::scene::FrustumProjection::far

Far place distance.

Objects further than this distance won't be rendered

◆ near

float oe::scene::FrustumProjection::near

Near place distance.

Objects closer than this distance won't be rendered


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