Presentation is loading. Please wait.

Presentation is loading. Please wait.

Texture and Shadow Mapping

Similar presentations


Presentation on theme: "Texture and Shadow Mapping"— Presentation transcript:

1 Texture and Shadow Mapping

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32 Rendering Shadows In several passes:
first draw the ambient component only, then by drawing the front faces and back faces of the shadow volumes (with depth test enabled), update the counter (stencil buffer) to determine pixels which are in between front and back faces of the shadow volume. (They are in shadow). Last pass to draw diffuse and specular components only for pixels that are not in shadow (use stencil test to identify these pixels by using the stencil buffer created in the second step)

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53


Download ppt "Texture and Shadow Mapping"

Similar presentations


Ads by Google