Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Sampler States / DepthMode

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


Cg Toolkit | Cg Toolkit | Download | Release Archive | Profiles | Reference | Books | Discussions |


Cg Sampler States

AddressU
AddressV
AddressW
BorderColor
CompareFunc
CompareMode
DepthMode
GenerateMipmap
LODBias
MagFilter
MaxAnisotropy
MaxMipLevel
MinFilter
MinMipLevel
MipFilter
MipMapLodBias
SRGBTexture
Texture
WrapR
WrapS
WrapT