YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: light - cs3451-f21.github.io

Attenuation: Atmospheric (fog, haze)

• zn and zf: near and far depth-cue plane • sn and sf: scale factors• Idc: depth cue color• Given zn < z0 < zf

interpolate sn < s0 < sf

• Adjust intensityI’ = s0I + (1 - s0)Idc

⇐¥É÷¥÷fog : Idc:( 41,11

close :nefeg .

far : allfogSpy

-_ 4

55-0

Haze :/aol.be?go.8)olese:hazefar:mostAog4 Sn=e8

original sp :O .at

cater

Page 2: light - cs3451-f21.github.io

Multiple Light Sources

Obvious summation over m lights:

I = IakaOd + S fattiIpi [ kdOd (N ·Li) + ks (Ri ·V)n]1£ i £m

Da -. diffuse color

ka = modify color for ambientKd = modifier for

diffuse¥

Ks = modifier for light.herIs

Ia = ambient light colorfatti = attenuation of

i'th light

Ipi = colorof point light

i

N.LI= diffuse contribution

for Li

Ri •V = specular contributionfor Li

is= specular power

(relatively large )


Related Documents