Top Banner
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
2

light - cs3451-f21.github.io

Oct 15, 2021

Download

Documents

dariahiddleston
Welcome message from author
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
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 )