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

Revision 1441, 4.0 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
90
91
92material GameTools/UVShader
93{
94   technique
95   {
96        pass
97      {
98                vertex_program_ref GameTools/UV_VS
99         {       
100            param_named_auto worldViewProj worldviewproj_matrix
101         }
102                fragment_program_ref GameTools/UV_PS
103         {
104                        param_named_auto ID custom 0
105         }
106       
107
108       }
109    }
110}
111
112material GameTools/DistanceShader
113{
114
115   technique
116   {
117        pass
118      {
119         vertex_program_ref GameTools/DistanceVS
120         {       
121            param_named_auto worldView worldview_matrix
122            param_named_auto worldViewProj worldviewproj_matrix
123         }
124         fragment_program_ref  GameTools/DistancePS
125         {
126                 
127         }
128
129       }
130    }
131}
132
133material GameTools/SceneCameraDepthShader
134{
135
136   technique
137   {
138      scene_blend none
139
140      pass
141      {
142         vertex_program_ref GameTools/SceneCameraDepthVS
143         {       
144            param_named_auto worldView worldview_matrix
145            param_named_auto worldViewProj worldviewproj_matrix
146            param_named_auto farplane far_clip_distance 
147         }
148         fragment_program_ref  GameTools/SceneDepthPS
149         {
150           
151         }
152
153       }
154    }
155}
156
157material GameTools/FocusingShader
158{
159
160   technique
161   {
162      scene_blend none
163
164      pass
165      {
166         vertex_program_ref GameTools/FocusingVS
167         {       
168                        param_named_auto world          world_matrix
169            param_named_auto worldViewProj worldviewproj_matrix
170                        param_named lightTransform matrix4x4     
171         }
172         fragment_program_ref  GameTools/FocusingPS
173         {
174           
175         }
176
177       }
178    }
179}
180
181material GameTools/ShadowMapDepth
182{
183
184   technique
185   {
186      scene_blend none
187
188      pass
189      {
190                //cull_hardware anticlockwise
191                //cull_hardware none
192               
193                vertex_program_ref GameTools/ShadowMap/DepthVS
194        {       
195          param_named_auto worldViewProj worldviewproj_matrix           
196            }
197                fragment_program_ref  GameTools/ShadowMap/DepthPS
198        {
199                       
200        }
201       
202       }
203    }
204}
205
206
207material GameTools/Blur
208{
209
210   technique
211   {
212     
213      pass
214      {                 
215                vertex_program_ref GameTools/BlurVS
216        {       
217                     
218            }
219                fragment_program_ref  GameTools/BlurPS
220        {
221                        param_named_auto width viewport_width
222                        param_named_auto height viewport_height
223        }
224        texture_unit
225        {
226                        filtering bilinear
227        }
228       
229       }
230    }
231}
232
233vertex_program PhaseVS hlsl
234{
235        source GameTools_Phase.hlsl
236        entry_point PhaseVS
237        target vs_2_0
238}
239
240fragment_program Phase_HenyeyGreenSteinPS hlsl
241{
242        source GameTools_Phase.hlsl
243        entry_point HenyeyGreensteinPS
244        target ps_2_0
245}
246
247material Phase_HenyeyGreenStein
248{
249
250   technique
251   {
252     
253      pass
254      {                 
255                vertex_program_ref PhaseVS
256                {       
257                     
258                }
259                fragment_program_ref  Phase_HenyeyGreenSteinPS
260                {
261                               
262                }               
263       
264       }
265    }
266}
Note: See TracBrowser for help on using the repository browser.