Professional Documents
Culture Documents
Computer Graphics
Computer Graphics
Computer Graphics
Lighting
Definitions
Definitions
Components of Illumination
Position
Direction
Shape
Directional attenuation
Components of Illumination
Surface properties
Reflectance spectrum (i.e., color of the surface)
Geometric attributes
Position
Orientation
Micro-structure
Lamberts Law
Attenuation: Distance
Realistic
fatt = 1/(dlight)2
Specular Reflection
(l)ight = (r)eflection
Phong Lighting
nshiny
Ispecular ksIlight V R
nshiny
R 2 N L N L
R 2 N L N L
R L 2 N L N
Phong Examples
I total k a I ambient
#lights
i 1
I i k d N L k s V R
nshiny