DepthMode
Keywords: DepthMode, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> DepthMode - 3D API depth mode

> ## Usage

> DepthMode = int(mode)

> ## Valid Enumerants

> mode: Alpha, Intensity, Luminance

> ## Description

> Specify the depth texture mode. See the GL_DEPTH_TEXTURE_MODE description on the OpenGL glTexParameter manual page or the ARB_depth_texture extension for details.

> The standard reset callback sets the DepthMode state to float(Luminance).

> ## Opengl Functionality Requirements

> OpenGL 1.4 or support for extension ARB_depth_texture.

> ## Direct3D Functionality Requirements

> Not applicable.

> ## See Also

> CompareFunc, CompareMode