Last change
on this file since 10498 was
8387,
checked in by marwegma, 14 years ago
|
Godrays: Fixed some parsing errors in the material and compositor scripts.
|
File size:
1.4 KB
|
Line | |
---|
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 | { |
---|
16 | pass clear |
---|
17 | { |
---|
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 | } |
---|
23 | } |
---|
24 | |
---|
25 | pass render_scene // render_custom? |
---|
26 | { |
---|
27 | first_render_queue 40 |
---|
28 | last_render_queue 40 |
---|
29 | |
---|
30 | material Godrays/Raw/Obstacle |
---|
31 | } |
---|
32 | |
---|
33 | pass render_scene |
---|
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 | { |
---|
46 | pass render_quad |
---|
47 | { |
---|
48 | material Godrays/Blur |
---|
49 | |
---|
50 | input 0 rt_raw |
---|
51 | } |
---|
52 | } |
---|
53 | |
---|
54 | |
---|
55 | target_output |
---|
56 | { |
---|
57 | pass render_quad |
---|
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.