source:
data/branches/environment/materials/Godrays.compositor
@
10227
Last change on this file since 10227 was 8387, checked in by marwegma, 14 years ago | |
---|---|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[8357] | 1 | compositor Godrays |
2 | { | |
3 | technique | |
4 | { | |
5 | texture rt_scene target_width target_height PF_A8R8G8B8 | |
6 | ||
7 | target rt_scene | |
8 | { | |
9 | input previous | |
10 | } | |
11 | ||
12 | texture rt_raw target_width target_height PF_A8R8G8B8 | |
13 | ||
14 | target rt_raw | |
15 | { | |
[8387] | 16 | pass clear |
[8357] | 17 | { |
[8387] | 18 | clear |
19 | { | |
20 | buffers colour depth stencil | |
21 | colour_value 0.0 0.0 0.0 1.0 // Clear by sky colour. Default is black | |
22 | } | |
[8357] | 23 | } |
24 | ||
[8387] | 25 | pass render_scene // render_custom? |
[8357] | 26 | { |
27 | first_render_queue 40 | |
28 | last_render_queue 40 | |
29 | ||
30 | material Godrays/Raw/Obstacle | |
31 | } | |
32 | ||
[8387] | 33 | pass render_scene |
[8357] | 34 | { |
35 | first_render_queue 60 | |
36 | last_render_queue 60 | |
37 | ||
38 | material Godrays/Raw/Sun | |
39 | } | |
40 | } | |
41 | ||
42 | texture rt_blur target_width target_height PF_A8R8G8B8 | |
43 | ||
44 | target rt_blur | |
45 | { | |
[8387] | 46 | pass render_quad |
[8357] | 47 | { |
48 | material Godrays/Blur | |
49 | ||
50 | input 0 rt_raw | |
51 | } | |
52 | } | |
53 | ||
54 | ||
55 | target_output | |
56 | { | |
[8387] | 57 | pass render_quad |
[8357] | 58 | { |
59 | material Godrays/Combine | |
60 | ||
61 | input 0 rt_blur | |
62 | input 1 rt_godrays | |
63 | } | |
64 | } | |
65 | } | |
66 | } |
Note: See TracBrowser
for help on using the repository browser.