Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

File size: 1.2 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            lightning 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            lightning off
28        }
29    }
30}
31
32
33fragment_program GodraysBlurFragmentProgram cg
34{
35    source Godrays_blur.cg
36    entry_point godrays_blur
37    profiles fp40 ps_3_0
38}
39
40
41
42material Godrays/Blur
43{
44    technique
45    {
46       
47        pass
48        {
49            fragment_program_ref GodraysBlurFragmentProgram
50            {
51                param_indexed 0 float2 0.0 0.0
52                param_indexed 1 float 1.0
53                param_indexed 2 float 0.1
54                param_indexed 3 float 0.7
55            }
56        }
57    }
58}
59
60fragment_program GodraysCombineFragmentProgram cg
61{
62    source Godrays_blur.cg
63    entry_point godrays_combine
64    profiles fp40 ps_3_0
65}
66
67material Godrays/Combine
68{
69    technique
70    {
71        pass
72        { 
73            fragment_program_ref GodraysCombineFragmentProgram { }
74        }
75    }
76}
Note: See TracBrowser for help on using the repository browser.