ezEngine  Release 25.03
ezClipSpaceDepthRange Struct Reference

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.
 

Detailed Description

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.

Member Enumeration Documentation

◆ Enum

Enumerator
MinusOneToOne 

Near plane at -1, far plane at +1.

ZeroToOne 

Near plane at 0, far plane at 1.


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