Shadows - PowerPoint PPT Presentation

1 / 3
About This Presentation
Title:

Shadows

Description:

Shadows CSE 681 CSE 681 Testing for shadows CSE 681 Pseudo-code For each light source i If face is backface wrt light source (called self-shadowing) Set IN-SHADOW to ... – PowerPoint PPT presentation

Number of Views:92
Avg rating:3.0/5.0
Slides: 4
Provided by: wen49
Category:
Tags: shadow | shadows

less

Transcript and Presenter's Notes

Title: Shadows


1
Shadows
2
Testing for shadows
3
Pseudo-code
For each light source i If face is backface wrt
light source (called self-shadowing) Set
IN-SHADOW to TRUE else Set IN-SHADOW to
FALSE Construct ray from point to light
source For each object Test ray-object
intersection (between point and l.s.) If
intersection found Set IN-SHADOW to TRUE for this
light source Break out of object loop If (NOT
IN-SHADOW) add in effect of light source
I accumulate diffuse light accumulate specular
light
Write a Comment
User Comments (0)
About PowerShow.com