2

The docs say dst "Calculates a distance vector" by:

dest = dst( src0, src1 ) ;

It says,

The first source operand (src0) is assumed to be the vector (ignored, d*d, d*d, ignored) and the second source operand (src1) is assumed to be the vector (ignored, 1/d, ignored, 1/d). The destination (dest) is the result vector (1, d, d*d, 1/d).
//Code
dest.x = 1;
dest.y = src0.y * src1.y;
dest.z = src0.z;
dest.w = src1.w;

What is the meaning of this really? Why would you want to use it?

bobobobo
  • 64,917
  • 62
  • 258
  • 363
  • http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/shader-programming-part-i-fundamentals-of-vert-r1496 – blizpasta May 03 '12 at 07:01

0 Answers0