Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/environment/materials/Godrays.compositor @ 8357

Last change on this file since 8357 was 8357, checked in by marwegma, 13 years ago

Godrays.compositor added, extended Godrays.material, unified the Godrays code a bit.

File size: 1.3 KB
Line 
1compositor 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            clear
17            {
18                buffers colour
19                colour_value 0.0 0.0 0.0 1.0 // Clear by sky colour. Default is black.
20            }
21
22            render_scene // render_custom?
23            {
24                first_render_queue 40
25                last_render_queue 40
26
27                material Godrays/Raw/Obstacle
28            }
29
30            render_scene
31            {
32                first_render_queue 60
33                last_render_queue 60
34
35                material Godrays/Raw/Sun
36            }
37        }
38
39        texture rt_blur target_width target_height PF_A8R8G8B8
40
41        target rt_blur
42        {
43            render_quad
44            {
45                material Godrays/Blur
46
47                input 0 rt_raw
48            }
49        }
50       
51
52        target_output
53        {
54            render_quad
55            {
56                material Godrays/Combine
57               
58                input 0 rt_blur
59                input 1 rt_godrays
60            }
61        }
62    }
63}
Note: See TracBrowser for help on using the repository browser.