• Advertisement
Sign in to follow this  

Half Vector & Eye Vector

This topic is 4442 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is Eye vector and half vector? // calculate half angle vector float3 eyeVec = float3(0.0, 0.0, 1.0); float3 halfVec = normalize(lightVec + eyeVec);

Share this post


Link to post
Share on other sites
Advertisement
The eye vector (also named camera vector) is a synonyme for the position of a virtual observer. (However, in your post above it is the vector from a point on a surface to the observer.)

A "halfway vector" (if you mean that by "half vector") is the unit vector at the half angle between two other vectors. Normally the halfway vector occurs in an alternative formulation of Phong's illumination model, where it is computed between the vector to the viewer v and the light source l:
h := ( v + l ) / || v + l ||

[Edited by - haegarr on November 26, 2005 9:57:59 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement