source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Glow.material @ 1441

Revision 1441, 4.0 KB checked in by szirmay, 18 years ago (diff)
Line 
1material GameTools/PostProcBlack
2{
3        technique
4   {
5        pass
6      {
7                vertex_program_ref GameTools/PostProc1_VS
8         {       
9         }
10                fragment_program_ref GameTools/PostProc_Black
11         {
12       
13         }
14       }
15    }
16}
17material GameTools/PostProc1
18{
19        technique
20   {
21        pass
22      {
23                vertex_program_ref GameTools/PostProc1_VS
24         {       
25         }
26                fragment_program_ref GameTools/PostProc1_PS
27         {
28       
29         }
30        texture_unit
31                 {
32                   // filtering none
33                        texture rockwall.tga           
34                 }
35      }
36   }
37}
38
39material GameTools/GlowCut
40{
41        technique
42   {
43        pass
44      {
45        vertex_program_ref GameTools/PostProc1_VS
46         {       
47         }
48        fragment_program_ref GameTools/GlowCut_PS
49         {
50                param_named_auto width viewport_width   
51                param_named_auto height viewport_height
52                param_named cutValue float 10.0
53                param_named timeBlur float 0.01
54               
55         }
56        texture_unit
57        {
58            //filtering none
59        }
60        texture_unit
61        {
62            //filtering none
63        }       
64      }
65   }
66}
67
68material GameTools/Luminance
69{
70        technique
71   {
72        pass
73      {
74                vertex_program_ref GameTools/PostProc1_VS
75         {       
76         }
77                fragment_program_ref GameTools/Luminance_PS
78         {
79                        param_named_auto width viewport_width   
80                param_named_auto height viewport_height
81               
82         }
83        texture_unit
84                 {
85                    //filtering none
86                        texture rockwall.tga           
87                 }               
88               
89      }
90   }
91}
92
93
94
95material GameTools/GlowBlurH
96{
97        technique
98   {
99        pass
100      {
101                vertex_program_ref GameTools/PostProc1_VS
102         {       
103         }
104                fragment_program_ref GameTools/GlowBlurH_PS
105         {
106                        param_named_auto width viewport_width   
107                param_named_auto height viewport_height
108                param_named Stretch float 1.5
109         }
110        texture_unit
111                 {
112                    tex_address_mode mirror
113                        texture rockwall.tga           
114                 }
115                       
116      }
117   }
118}
119
120material GameTools/GlowBlurV
121{
122        technique
123   {
124        pass
125      {
126                vertex_program_ref GameTools/PostProc1_VS
127         {       
128         }
129                fragment_program_ref GameTools/GlowBlurV_PS
130         {
131                        param_named_auto width viewport_width   
132                param_named_auto height viewport_height
133                param_named Stretch float 1.5
134         }
135        texture_unit
136                 {
137                    tex_address_mode mirror
138                        texture rockwall.tga           
139                 }               
140      }
141   }
142}
143
144material GameTools/TextureCopy
145{
146        technique
147   {
148        pass
149      {
150                vertex_program_ref GameTools/PostProc1_VS
151         {       
152         }
153                fragment_program_ref GameTools/TextureCopy_PS
154         {
155                        param_named_auto width viewport_width   
156                param_named_auto height viewport_height
157               
158         }
159        texture_unit
160                 {
161                   // filtering none
162                        texture rockwall.tga           
163                 }               
164      }
165   }
166}
167   
168material GameTools/GlowAdd
169{
170        technique
171   {
172        pass
173      {
174                vertex_program_ref GameTools/PostProc1_VS
175         {       
176         }
177                fragment_program_ref GameTools/GlowAdd_PS
178         {
179                        param_named_auto width viewport_width   
180                param_named_auto height viewport_height
181               
182         }
183        texture_unit
184                 {
185                   // filtering none
186                        texture rockwall.tga           
187                 }
188                  texture_unit
189                 {
190                   // filtering none
191                        texture rockwall.tga           
192                 }
193      }
194   }
195}
196
197material GameTools/ToneMap
198{
199        technique
200   {
201        pass
202      {
203                vertex_program_ref GameTools/PostProc1_VS
204         {       
205         }
206                fragment_program_ref GameTools/ToneMap_PS
207         {
208                        param_named_auto width viewport_width   
209                param_named_auto height viewport_height
210                param_named Gain float 0.5
211         }
212        texture_unit
213                 {
214                   // filtering none
215                        texture rockwall.tga           
216                 }
217                  texture_unit
218                 {
219                   // filtering none
220                        texture rockwall.tga           
221                 }
222                  texture_unit
223                 {
224                   // filtering none
225                        texture rockwall.tga           
226                 }
227      }
228   }
229}
Note: See TracBrowser for help on using the repository browser.