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

> ## Name

> FogCoordSrc - 3D API fog coord src

> ## Usage

> FogCoordSrc = int(src)

> ## Valid Enumerants

> GL src: FragmentDepth, FogCoord D3D9 src: None, Exp, Exp2, Linear

> ## Description

> Specify whether to use fragment depth or a per-vertex fog coordinate in fog computations. See the GL_FOG_COORDINATE_SOURCE_EXT description in the OpenGL EXT_fog_coord specification for details. See the D3DRS_FOGVERTEXMODE render state description for DirectX 9.

> The standard reset callback sets the FogCoordSrc state to int(FragmentDepth).

> ## Opengl Functionality Requirements

> OpenGL 1.4 or support for extension EXT_fog_coord.

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> FogColor, FogDensity, FogDistanceMode, FogEnable, FogEnd, FogMode, FogStart, FogTableMode, FogVertexMode, RangeFogEnable