Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Sampler States / CompareFunc

Name

CompareFunc - 3D API compare function

Usage

CompareFunc = int(func)

Valid Enumerants

func: Never, Less, LEqual, Equal, Greater, NotEqual, GEqual, Always

Description

Specify the texture comparison function. See the GL_TEXTURE_COMPARE_FUNC description on the OpenGL glTexParameter manual page, the GL_ARB_shadow extension, or EXT_shadow_funcs extension for details.

The standard reset callback sets the CompareFunc state to float(LEqual).

Opengl Functionality Requirements

LEqual, GEqual: OpenGL 1.4 or support for extension GL_ARB_shadow.

all others: OpenGL 1.5 or support for extension GL_EXT_shadow_funcs.

Direct3D Functionality Requirements

Not applicable.

See Also

CompareMode, DepthMode


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