Computing a Reflected Ray

Look at geometry of reflection

Note that for our rays: Rin = -Rd

The projection of Rin onto N is N cos (q) so

Rout = N cos(q) + S

Rin + S = N cos(q)

S = N cos(q) - Rin

Rout = 2Ncos(q) - Rin = 2N(N Rin) - Rin



Go to main ray trace page
HyperGraph Table of Contents.
HyperGraph Home page.

Last changed April 01, 1998, G. Scott Owen, owen@siggraph.org