Microsoft DirectX 8.0 (Visual Basic) |
Converts the iterated texture coordinate assigned to this stage to a color for use in blending.
texcoord tDest
This instruction allows the use of the texture coordinate as an additional Gouraud iterated (guaranteed perspective correct) color.
texcoord t0 ; Declare register t0 as a color from its texture coordinates.
Because any quantity can be mapped by the vertex shader into a texture coordinate, the texcoord instruction can be used to stream arbitrary data such as position, normal, and light source direction to the pixel shader.
Note that this instruction has an unnamed input which is the assigned texture that corresponds to this texture stage.