Template Class OpenGLDepth2LinearLUTs

Nested Relationships

Nested Types

Class Documentation

template<int DEPTH_LUT_NUM_BITS = 18>
class OpenGLDepth2LinearLUTs

Creates look-up-tables (LUTs) to map raw OpenGL depth values in the range [-1,1] to real, linear, depth values.

See also

CFBORender

Public Types

using lut_t = std::vector<float>

Public Functions

inline lut_t &lut_from_zn_zf(float zn, float zf)

Public Static Functions

static inline OpenGLDepth2LinearLUTs &Instance()

Public Static Attributes

static constexpr std::size_t NUM_ENTRIES = 1 << DEPTH_LUT_NUM_BITS