Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Godrays.material added. Compositor script will follow.

File size: 1.0 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 GodrayBlurFragmentProgram cg
34{
35    source Godrays_blur.cg
36    entry_point godray_blur
37    profiles ps_3_0 fp40
38}
39
40
41material Godrays/Blur/RadialBlur
42{
43    technique
44    {
45       
46        pass
47        {
48            fragment_program_ref GodrayBlurFragmentProgram
49            {
50                param_indexed 0 float2 0.0 0.0
51                param_indexed 1 float 1.0
52                param_indexed 2 float 0.1
53                param_indexed 3 float 0.7
54                // The raw decal has to be loaded manually by api.
55            }
56        }
57    }
58}
Note: See TracBrowser for help on using the repository browser.