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 = cos [phi]

Alternatively: use halfway vector H
H = (L + V) / |L + V| = { direction of maximum highlights }

maximum highlight when H = N (because then R = V)
=> Ispec = ks Il (H.N)n
H.N = cos [alpha]


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