Inputs to the Batch Files for the Cg Compiler
---------------------------------------------
VProgram Default Default
PProgram Default Default

VProgram L1a Lighting
VProgram L1d Lighting
VProgram L1p Lighting
VProgram L1s Lighting

VProgram Material Material

VProgram MaterialTexture MaterialTexture
PProgram MaterialTexture MaterialTexture

PProgram PassThrough3 PassThrough
PProgram PassThrough4 PassThrough

VProgram T0d2T1d2PassThrough T0d2T1d2PassThrough

PProgram T0s1d0T1s1d1 T0s1d0T1s1d1

PProgram T0s1d0T1s2d0 T0s1d0T1s2d0

PProgram T0s1d0T1s3d1 T0s1d0T1s3d1

VProgram Texture Texture
PProgram Texture Texture

VProgram VertexColor3 VertexColor
VProgram VertexColor4 VertexColor

// ps_1_3 cannot handle this.  The "pow" function is not defined for
// pixel shaders and the addition of texture coordinates to feed the
// last tex2D call generates an error:  "Dependent texture operations
// don't meet restrictions of texture shaders."
VProgram BlendedTerrain BlendedTerrain
PProgram BlendedTerrain BlendedTerrain

VProgram SimpleBumpMap SimpleBumpMap
PProgram SimpleBumpMap SimpleBumpMap

// ps_1_3 cannot handle this.  The additive update of kContrastTCoord.x
// to feed the tex2D call using it generates an error:  "Dependent texture
// operations don't meet restrictions of texture shaders."
VProgram Charcoal Charcoal
PProgram Charcoal Charcoal

// ps_1_3 generates warnings: "Input modifiers are not allowed on uniform
// inputs in this profile."  The pixel shader output is generated.  However,
// my ATI Radeon 9000 fails on the call to D3DXCreateCubeTexture.
VProgram CubeMap CubeMap
PProgram CubeMap CubeMap

VProgram Fresnel Fresnel
PProgram Fresnel Fresnel

VProgram GlossMap GlossMap
PProgram GlossMap GlossMap

// ps_1_3 cannot handle this.  It generates an error:  "Dependent texture
// operations don't meet restrictions of texture shaders."
VProgram Iridescence Iridescence
PProgram Iridescence Iridescence

// ps_1_3 generates code that does not include a sampler2DSHADOW sampler.
// Instead, it generates a regular sampler2D.  The result is effectively a
// single-color mesh.
VProgram ProjectedTexture ProjectedTexture
PProgram ProjectedTexture ProjectedTexture

VProgram Refraction Refraction
PProgram Refraction Refraction

// vs_1_1 generates the error:  "Too many instructions generated for this
// profile."  ps_1_3 generates errors about the use of "normalize".
VProgram RipplingOcean RipplingOcean
PProgram RipplingOcean RipplingOcean

// ps_1_3 generates the following error for the ShadowMap shader:  "profile
// does not support "if" statements"
VProgram ProjectedDepth ProjectedShadow
PProgram ProjectedDepth ProjectedShadow
VProgram ShadowMap ProjectedShadow
PProgram ShadowMap ProjectedShadow

VProgram Skinning Skinning

VProgram SphereMap SphereMap
PProgram SphereMap SphereMap

VProgram BaseMulDetailFogExpSqr BaseMulDetailFogExpSqr
PProgram BaseMulDetailFogExpSqr BaseMulDetailFogExpSqr

VProgram VolumeFog VolumeFog
PProgram VolumeFog VolumeFog

// The programs compiled and ran, but the transparency was not handled
// correctly.
VProgram VolumeTextures VolumeTextures
PProgram VolumeTextures VolumeTextures
