hi!

lets say i want to calculate specularity to do something like this:
http://plouj.com/projects/erlang-ray...aced-r27-1.png

i have:
  • light vector
  • surface normal
  • camera look vector


i want:
specularity
all i get when trying to do this is something that doesn't look much like specular, but more like a paintball match. i'm not very good at vector maths, so i'm asking YOU

anyone got an idea?
thanks