Presentation is loading. Please wait.

Presentation is loading. Please wait.

Shadows CSE 681.

Similar presentations


Presentation on theme: "Shadows CSE 681."— Presentation transcript:

1 Shadows CSE 681

2 Testing for shadows CSE 681

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 CSE 681


Download ppt "Shadows CSE 681."

Similar presentations


Ads by Google