Original Post
🔒 Locked
reflect() function for normal and light vector?
Advertisement
v-2*n*(n.v) is correct as long as n is normalized. If it isn't, v - 2*n*(n.v)/(n.n) is the way to go. v doesn't need to be normalized in either case.
Quote:
I am normalizing all vectors, just did not explicitly note that here.
Not the velocity I hope ...
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement