![]() |
ezEngine
Release 25.03
|
Describes for which depth range a projection matrix is constructed. More...
#include <Declarations.h>
Public Types | |
enum | Enum { MinusOneToOne, ZeroToOne } |
Static Public Attributes | |
static EZ_FOUNDATION_DLL Enum | Default = ezClipSpaceDepthRange::ZeroToOne |
Holds the default value for the projection depth range on each platform. This can be overridden by renderers to ensure the proper range is used when they become active. On Windows/D3D this is initialized with 'ZeroToOne' by default on all other platforms/OpenGL it is initialized with 'MinusOneToOne' by default. | |
Describes for which depth range a projection matrix is constructed.
Different Rendering APIs use different depth ranges. E.g. OpenGL uses -1 for the near plane and +1 for the far plane. DirectX uses 0 for the near plane and 1 for the far plane.