Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/environment/materials/Godrays.material @ 8968

Last change on this file since 8968 was 8387, checked in by marwegma, 14 years ago

Godrays: Fixed some parsing errors in the material and compositor scripts.

File size: 1.7 KB
Line 
1/**
2*
3* \author Markus Wegmann
4*
5**/
6
7
8material Godrays/Raw/Sun // Renders the sun as a single colored sphere. Z-buffering is enabled.
9{
10    technique
11    {
12        pass
13        {
14            ambient 1.0 1.0 1.0 1.0
15            lighting off
16        }
17    }
18}
19
20material Godrays/Raw/Obstacle // Renders the sun as a single colored sphere. Z-buffering is enabled.
21{
22    technique
23    {
24        pass
25        {
26            ambient 0.0 0.0 0.0 1.0
27            lighting off
28        }
29    }
30}
31
32
33fragment_program GodraysBlurFragmentProgram cg
34{
35    source Godrays_blur.cg
36    entry_point godrays_blur
37    profiles fp30 ps_3_0
38}
39
40
41
42material Godrays/Blur
43{
44    technique
45    {
46
47        pass
48        {
49            texture_unit //raw_decal
50            {
51                tex_address_mode border
52                tex_border_colour 0.0 0.0 0.0 1.0 // Set manually to sky color by api.
53
54                content_type compositor Godrays rt_raw
55            }
56
57            fragment_program_ref GodraysBlurFragmentProgram
58            {
59                param_indexed 0 float2 0.0 0.0
60                param_indexed 1 float 1.0
61                param_indexed 2 float 0.1
62                param_indexed 3 float 0.7
63            }
64        }
65    }
66}
67
68fragment_program GodraysCombineFragmentProgram cg
69{
70    source Godrays_blur.cg
71    entry_point godrays_combine
72    profiles fp30 ps_3_0
73}
74
75material Godrays/Combine
76{
77    technique
78    {
79        pass
80        {
81            texture_unit //scene_decal
82            {
83                content_type compositor Godrays rt_scene
84            }
85            texture_unit //blur_decal
86            {
87                content_type compositor Godrays rt_blur
88            }
89
90            fragment_program_ref GodraysCombineFragmentProgram { }
91        }
92    }
93}
Note: See TracBrowser for help on using the repository browser.