Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows macro values that are flags used with the D3DMTSS_TEXCOORDINDEX texture stage state to specify that vertex position and vertex normal data in the camera space should be taken as texture coordinates. The low 16 bits are used to specify texture coordinate index, to take the WRAP mode from.

Value Description

D3DMTSS_TCI_PASSTHRU

Disables texture coordinate generation. For a given stage, the interpolated texture coordinates from the vertices are used.

D3DMTSS_TCI_CAMERASPACENORMAL

Uses the vertex normal, transformed to camera space as the vertex's texture coordinates for the given stage. The results will be normalized vectors.

D3DMTSS_TCI_CAMERASPACEPOSITION

Uses the vertex position, transformed to camera space as the vertex's texture coordinates for the given stage.

D3DMTSS_TCI_CAMERASPACEREFLECTIONVECTOR

Uses the reflection vector at the vertex as the vertex's texture coordinates for the given stage. The results will be normalized vectors.

Requirements

Header d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also