-- May 1 In-Class Exercise
L = (R,G,B) = dI max(0, n * l) + sI max(0, n * b)^x + L_a
d = diffuse = red = (1, 0, 0)
s = specular = green = (0, 1, 0)
I = intensity = I = (.7, .5, .3)
nl = .6
nb = .9
x = amt of shininess = 5000
L_a = (.1, .1, .1)
(1, 0, 0)(.7, .5, .3)(.6) + (0, 1, 0)(.7, .5, .3)(.9)^5000 + (.1, .1, .1)
(.7, 0, 0)(.6) + (0, .5, 0)(0.9)^5000 + (.1, .1, .1)
(.42, 0, 0) + (0, 8.15e-230, 0) + (.1, .1, .1)
(.52, .1, .1)
(
Edited: 2019-05-01)
L = (R,G,B) = dI max(0, n * l) + sI max(0, n * b)^x + L_a
d = diffuse = red = (1, 0, 0)
s = specular = green = (0, 1, 0)
I = intensity = I = (.7, .5, .3)
nl = .6
nb = .9
x = amt of shininess = 5000
L_a = (.1, .1, .1)
= (1, 0, 0)(.7, .5, .3)(.6) + (0, 1, 0)(.7, .5, .3)(.9)^5000 + (.1, .1, .1)
= (.7, 0, 0)(.6) + (0, .5, 0)(0.9)^5000 + (.1, .1, .1)
= (.42, 0, 0) + (0, 8.15e-230, 0) + (.1, .1, .1)
= (.52, .1, .1)