Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Sampler States / SRGBTexture

Name

SRGBTexture - 3D API gamma correction value

Usage

SRGBTexture = float(tex)

Valid Enumerants

tex: floating point value

Description

Specify whether gamma correction should be used. See the D3DSAMP_SRGBTEXTURE sampler state description for DirectX 9.

The standard reset callback sets the SRGBTexture state to float(0).

Opengl Functionality Requirements

Not applicable.

Direct3D Functionality Requirements

DirectX 9

See Also


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