Top Description Fields Constructors Methods
org.lwjgl.egl

public final Class NVDepthNonlinear

extends Object
Class Inheritance

Native bindings to the NV_depth_nonlinear extension.

Due to the perspective divide, conventional integer Z-buffers have a hyperbolic distribution of encodings between the near plane and the far plane. This can result in inaccurate depth testing, particularly when the number of depth buffer bits is small and objects are rendered near the far plane.

Particularly when the number of depth buffer bits is limited (desirable and/or required in low-memory environments), artifacts due to this loss of precision may occur even with relatively modest far plane-to-near plane ratios (e.g., greater than 100:1).

Many attempts have been made to provide alternate encodings for Z-buffer (or alternate formulations for the stored depth) to reduce the artifacts caused by perspective division, such as W-buffers, Z-complement buffers and floating-point 1-Z buffers.

This extension adds a non-linear encoded Z buffer to OpenGL, which can improve the practically useful range of, e.g. 16-bit depth buffers by up to a factor of 16, greatly improving depth test quality in applications where the ratio between the near and far planes can not be as tightly controlled.

Requires EGL 1.1.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_DEPTH_ENCODING_NONE_NVback to summary
public static final int EGL_DEPTH_ENCODING_NONE_NV
EGL_DEPTH_ENCODING_NONLINEAR_NVback to summary
public static final int EGL_DEPTH_ENCODING_NONLINEAR_NV
EGL_DEPTH_ENCODING_NVback to summary
public static final int EGL_DEPTH_ENCODING_NV

Constructor Detail

NVDepthNonlinearback to summary
private NVDepthNonlinear()