Ray Tracing Tutorial - Google Code
intersection of a ray and a sphere ?). Here is the code of that function : vecteur dist = s.pos - r.start; double B = r.dir * dist; ... give us the perceived lighting for the current viewing ray. Reflection What would be ray tracing without that good old
bendergame.googlecode.com |