Export (0) Print
Expand All

texdp3 - ps

Performs a three-component dot product between data in the texture register number and the texture coordinate set corresponding to the destination register number.

Syntax

texdp3 dst, src

 

where

  • dst is the destination register.
  • src is a source register.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
texdp3xx

 

Texture registers must use the following sequence.


 
tex    t(n)        // Define tn as a standard 3-vector (tn must be 
                   //   defined in some way before texdp3 uses it)
texdp3 t(m), t(n)  // where m > n
                   // Perform a three-component dot product between tn and 
                   //   the texture coordinate set m. The scalar result is
                   //   replicated to all components of t(m)


Here is more detail about how the dot product is accomplished.

The texdp3 instruction performs a three-component dot product and replicates it to all four color channels.

t(m)RGBA = TextureCoordinates(stage m)UVW * t(n)RGB

 

 

Community Additions

ADD
Show:
© 2014 Microsoft