Illumination and Shading
[prev][next]
Subpages: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]

Calculating Refraction Vector

T = sin [theta]rM - cos[theta]rN
= sin[theta]r / sin[theta]i (N cos[theta]i - L) - cos[theta]r N
=( (ni / nr) (N cos[theta]i - L) - cos[theta]r N
= ((ni / nr) cos[theta]i - cos[theta]r) N - (ni / nr) L
= ((ni / nr) cos[theta]i - sqrt(1 - (ni / nr)2 sin2[theta]i) N - (ni / nr) L
= ((ni / nr) (N.L) - sqrt(1 - (ni / nr)2 (N.L)2) N - (ni / nr) L


Subpages: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
[prev][next]
Made by dynaPage 0.2