Attenuation: Atmospheric (fog, haze) • z n and z f : near and far depth-cue plane • s n and s f : scale factors • I dc : depth cue color • Given z n < z 0 < z f interpolate s n < s 0 < s f • Adjust intensity I’ = s 0 I + (1 - s 0 )I dc ⇐ ¥É÷¥÷ fog : Idc :( 41,11 close :nefeg . far : allfog Spy -_ 4 55-0 Haze :/ aol.be?go.8)olese:hazefar:mostAog 4 Sn=e8 original sp :O .at cater
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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
Multiple Light Sources
Obvious summation over m lights:
I = IakaOd + S fattiIpi [ kdOd (N ·Li) + ks (Ri ·V)n]1£ i £m