Condividi tramite


texdp3tex - ps

Esegue un prodotto a tre componenti e usa il risultato per eseguire una ricerca trama 1D.

Sintassi

texdp3tex dst, src

 

dove

  • dst è il registro di destinazione.
  • src è un registro di origine.

Commenti

Versioni di Pixel shader 1_1 1_2 1_3 1_4 2_0 2_x 2_sw 3_0 3_sw
texdp3tex x x

 

I registri trama devono usare la sequenza seguente.

 
tex       t(n)        // Define tn as a standard 3-vector (tn must be 
                      // defined in some way before texdp3tex uses it)
texdp3tex t(m), t(n)  // where m > n                 
                      // Perform a three-component dot product between t(n) and 
                      // the texture coordinate set m. Use the scalar result to
                      // do a 1D texture lookup at texturestage m and place
                      // the result in t(m)

Ecco altri dettagli sul modo in cui viene eseguita la ricerca del prodotto e della trama punto.

L'istruzione texdp3tex esegue un prodotto punto a tre componenti.

u' = TextureCoordinates(stage m)UVW * t(n)RGB

Il risultato viene usato per esempio la trama in fase trama m eseguendo una ricerca 1D.

t(m)RGBA = TextureSample(stage m)RGBA usando (u',0,0) come coordinate

Istruzioni sul pixel shader