source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material @ 1590

Revision 1590, 4.3 KB checked in by szirmay, 18 years ago (diff)
Line 
1material Flare
2{
3        technique
4        {
5                pass
6                {
7                        //cull_hardware none                   
8                        lighting off
9                        scene_blend add
10                        //scene_blend_op add
11                        //scene_blend_op_alpha add
12                        //scene_blend_alpha add
13                        //depth_check off
14                        depth_write off
15
16                        texture_unit
17                        {
18                                texture flare.png
19                        }
20                }
21        }
22}
23
24
25material Examples/EveningSkyBox
26{
27        technique
28        {
29                pass
30                {
31                        lighting off
32                        depth_write off
33
34                        texture_unit
35                        {
36                                cubic_texture stormy.jpg separateUV
37                                tex_address_mode clamp
38                        }
39                }
40        }
41}
42
43material Examples/MorningSkyBox
44{
45        technique
46        {
47                pass
48                {
49                        lighting off
50                        depth_write off
51
52                        texture_unit
53                        {
54                                cubic_texture morning.jpg separateUV
55                                tex_address_mode clamp
56                        }
57                }
58        }
59}
60
61material GameTools/Rockwall
62{
63        technique
64        {
65                pass
66                {
67                        lighting off
68                        texture_unit
69                        {
70                                texture rockwall.tga
71                                //env_map cubic_normal
72                                //vertex_texture true
73                        }
74                }
75        }
76}
77
78material GameTools/Standard
79{
80        technique
81        {
82                pass
83                {
84                        ambient 0.1 0.11 0.15
85                        diffuse 0.8 0.9 1.0
86                }
87        }
88}
89
90material TestPlane
91{
92        technique
93        {
94                pass
95                {
96                        ambient 0.3 0.3 0.4
97                        diffuse 0.9 0.9 1.0
98                       
99                        IllumTechniques
100                        {
101                               
102                                RenderTechnique CausticReciever
103                                {
104                                        max_caster_count        10
105                                }                               
106                        }               
107                }
108        }
109}
110
111
112
113material GameTools/UVShader
114{
115   technique
116   {
117        pass
118      {
119                vertex_program_ref GameTools/UV_VS
120         {       
121            param_named_auto worldViewProj worldviewproj_matrix
122         }
123                fragment_program_ref GameTools/UV_PS
124         {
125                        param_named_auto ID custom 0
126         }
127       
128
129       }
130    }
131}
132
133material GameTools/DistanceShader
134{
135
136   technique
137   {
138        pass
139      {
140         vertex_program_ref GameTools/DistanceVS
141         {       
142            param_named_auto worldView worldview_matrix
143            param_named_auto worldViewProj worldviewproj_matrix
144         }
145         fragment_program_ref  GameTools/DistancePS
146         {
147                 
148         }
149
150       }
151    }
152}
153
154material GameTools/SceneCameraDepthShader
155{
156
157   technique
158   {
159      scene_blend none
160
161      pass
162      {
163         vertex_program_ref GameTools/SceneCameraDepthVS
164         {       
165            param_named_auto worldView worldview_matrix
166            param_named_auto worldViewProj worldviewproj_matrix
167            param_named_auto farplane far_clip_distance 
168         }
169         fragment_program_ref  GameTools/SceneDepthPS
170         {
171           
172         }
173
174       }
175    }
176}
177
178material GameTools/FocusingShader
179{
180
181   technique
182   {
183      scene_blend none
184
185      pass
186      {
187         vertex_program_ref GameTools/FocusingVS
188         {       
189                        param_named_auto world          world_matrix
190            param_named_auto worldViewProj worldviewproj_matrix
191                        param_named lightTransform matrix4x4     
192         }
193         fragment_program_ref  GameTools/FocusingPS
194         {
195           
196         }
197
198       }
199    }
200}
201
202material GameTools/ShadowMapDepth
203{
204
205   technique
206   {
207      scene_blend none
208
209      pass
210      {
211                //cull_hardware anticlockwise
212                //cull_hardware none
213               
214                vertex_program_ref GameTools/ShadowMap/DepthVS
215        {       
216          param_named_auto worldViewProj worldviewproj_matrix           
217            }
218                fragment_program_ref  GameTools/ShadowMap/DepthPS
219        {
220                       
221        }
222       
223       }
224    }
225}
226
227
228material GameTools/Blur
229{
230
231   technique
232   {
233     
234      pass
235      {                 
236                vertex_program_ref GameTools/BlurVS
237        {       
238                     
239            }
240                fragment_program_ref  GameTools/BlurPS
241        {
242                        param_named_auto width viewport_width
243                        param_named_auto height viewport_height
244        }
245        texture_unit
246        {
247                        filtering bilinear
248        }
249       
250       }
251    }
252}
253
254vertex_program PhaseVS hlsl
255{
256        source GameTools_Phase.hlsl
257        entry_point PhaseVS
258        target vs_2_0
259}
260
261fragment_program Phase_HenyeyGreenSteinPS hlsl
262{
263        source GameTools_Phase.hlsl
264        entry_point HenyeyGreensteinPS
265        target ps_2_0
266}
267
268material Phase_HenyeyGreenStein
269{
270
271   technique
272   {
273     
274      pass
275      {                 
276                vertex_program_ref PhaseVS
277                {       
278                     
279                }
280                fragment_program_ref  Phase_HenyeyGreenSteinPS
281                {
282                               
283                }               
284       
285       }
286    }
287}
288
289
290
Note: See TracBrowser for help on using the repository browser.