View Full Version : half vector in pixel shading

03-15-2003, 02:57 AM
Hi all!

Can someone explain why linear interpolation of half angle vector produces worst results than interpolating POINT TO EYE vector, then calculating half angle vector by pixel?

I still can't imaging why is that...

See you.

03-15-2003, 05:20 AM
The half-angle vector varies non-linearly. It is the normalized sum of two normalized vectors. If you work aout the math of the lerp of the half angles versus the half angle of the lerped vectors, you will see that they simply aren't equivalent.


03-16-2003, 12:42 AM
Hi and thanks for your answer.

I was thinking in that, and I took my old algebra books to find something similar.

See you.