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

Calculating Reflection Vector

where L and N are unit length
=> projection of L on N is
N cos [theta]

S = N cos [theta] - L

R is L mirrored about N
R = N cos [theta] + S = 2N cos [theta] - L
= 2N (N.L) - L => where Ispec = ks Il ( (2N (N.L) - L ).V )n
(2N (N.L) - L ).V = R.V

Alternatively: use halfway vector H
H = (L + V) / |L + V|


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