Platform SDK: DirectX

CONST_D3DTEXCOORDINDEXFLAGS

The CONST_D3DTEXCOORDINDEXFLAGS enumeration defines values used in combination with the index values set with the D3DTSS_TEXCOORDINDEX texture-stage state.

Type CONST_D3DTEXCOORDINDEXFLAGS
    D3DTSS_TCI_CAMERASPACENORMAL = 65536
    D3DTSS_TCI_CAMERASPACEPOSITION = 131072
    D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR = 196608
    D3DTSS_TCI_PASSTHRU = 0
End Type
 
D3DTSS_TCI_CAMERASPACENORMAL
Use the vertex normal, transformed to camera space, as the input texture coordinates for this stage's texture transformation.
D3DTSS_TCI_CAMERASPACEPOSITION
Use the vertex position, transformed to camera space, as the input texture coordinates for this stage's texture transformation.
D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR
Use the reflection vector, transformed to camera space, as the input texture coordinate for this stage's texture transformation. The reflection vector is computed from the input vertex position and normal vector.
D3DTSS_TCI_PASSTHRU
Use the specified texture coordinates contained within the vertex format.

Remarks

The values from this enumeration (except for D3DTSS_TCI_PASSTHRU, which resolves to zero) change how the system uses the index value being set in D3DTSS_TEXCOORDINDEX. Normally, the value set in D3DTSS_TEXCOORDINDEX controls the texture coordinate set used to address the texture. However, when you include the D3DTSS_TCI_CAMERASPACENORMAL, D3DTSS_TCI_CAMERASPACEPOSITION, or D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR values (as a logical Or operation with the index being set), the system uses the index strictly to determine the texture wrapping mode.

Values within this enumeration are useful to applications that benefit from automatic generation of texture coordinates for environment mapping.

See Also

Configuring Automatically Generated Texture Coordinates