Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8474 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
RevLine 
[8346]1/**
[8357]2*
[8346]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
[8387]15            lighting off
[8346]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
[8387]27            lighting off
[8346]28        }
29    }
30}
31
32
[8357]33fragment_program GodraysBlurFragmentProgram cg
[8346]34{
35    source Godrays_blur.cg
[8357]36    entry_point godrays_blur
[8359]37    profiles fp30 ps_3_0
[8346]38}
39
40
[8357]41
42material Godrays/Blur
[8346]43{
44    technique
45    {
[8387]46
47        pass
[8359]48        {
[8387]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.
[8359]53
[8387]54                content_type compositor Godrays rt_raw
55            }
[8359]56
[8357]57            fragment_program_ref GodraysBlurFragmentProgram
[8387]58            {
[8346]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}
[8357]67
68fragment_program GodraysCombineFragmentProgram cg
69{
70    source Godrays_blur.cg
71    entry_point godrays_combine
[8359]72    profiles fp30 ps_3_0
[8357]73}
74
75material Godrays/Combine
76{
77    technique
78    {
[8387]79        pass
[8359]80        {
[8387]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            }
[8359]89
[8357]90            fragment_program_ref GodraysCombineFragmentProgram { }
91        }
92    }
93}
Note: See TracBrowser for help on using the repository browser.