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

Revision 1424, 3.8 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
24material Examples/MorningSkyBox
25{
26        technique
27        {
28                pass
29                {
30                        lighting off
31                        depth_write off
32
33                        texture_unit
34                        {
35                                cubic_texture morning.jpg separateUV
36                                tex_address_mode clamp
37                        }
38                }
39        }
40}
41
42material GameTools/Rockwall
43{
44        technique
45        {
46                pass
47                {
48                        lighting off
49                        texture_unit
50                        {
51                                texture rockwall.tga
52                                env_map cubic_normal
53                                //vertex_texture true
54                        }
55                }
56        }
57}
58
59material GameTools/Standard
60{
61        technique
62        {
63                pass
64                {
65                        ambient 0.1 0.11 0.15
66                        diffuse 0.8 0.9 1.0
67                }
68        }
69}
70
71
72
73material GameTools/UVShader
74{
75   technique
76   {
77        pass
78      {
79                vertex_program_ref GameTools/UV_VS
80         {       
81            param_named_auto worldViewProj worldviewproj_matrix
82         }
83                fragment_program_ref GameTools/UV_PS
84         {
85                        param_named_auto ID custom 0
86         }
87       
88
89       }
90    }
91}
92
93material GameTools/DistanceShader
94{
95
96   technique
97   {
98        pass
99      {
100         vertex_program_ref GameTools/DistanceVS
101         {       
102            param_named_auto worldView worldview_matrix
103            param_named_auto worldViewProj worldviewproj_matrix
104         }
105         fragment_program_ref  GameTools/DistancePS
106         {
107                 
108         }
109
110       }
111    }
112}
113
114material GameTools/SceneCameraDepthShader
115{
116
117   technique
118   {
119      scene_blend none
120
121      pass
122      {
123         vertex_program_ref GameTools/SceneCameraDepthVS
124         {       
125            param_named_auto worldView worldview_matrix
126            param_named_auto worldViewProj worldviewproj_matrix
127            param_named_auto farplane far_clip_distance 
128         }
129         fragment_program_ref  GameTools/SceneDepthPS
130         {
131           
132         }
133
134       }
135    }
136}
137
138material GameTools/FocusingShader
139{
140
141   technique
142   {
143      scene_blend none
144
145      pass
146      {
147         vertex_program_ref GameTools/FocusingVS
148         {       
149                        param_named_auto world          world_matrix
150            param_named_auto worldViewProj worldviewproj_matrix
151                        param_named lightTransform matrix4x4     
152         }
153         fragment_program_ref  GameTools/FocusingPS
154         {
155           
156         }
157
158       }
159    }
160}
161
162material GameTools/ShadowMapDepth
163{
164
165   technique
166   {
167      scene_blend none
168
169      pass
170      {
171                //cull_hardware anticlockwise
172                //cull_hardware none
173               
174                vertex_program_ref GameTools/ShadowMap/DepthVS
175        {       
176          param_named_auto worldViewProj worldviewproj_matrix           
177            }
178                fragment_program_ref  GameTools/ShadowMap/DepthPS
179        {
180                       
181        }
182       
183       }
184    }
185}
186
187
188material GameTools/Blur
189{
190
191   technique
192   {
193     
194      pass
195      {                 
196                vertex_program_ref GameTools/BlurVS
197        {       
198                     
199            }
200                fragment_program_ref  GameTools/BlurPS
201        {
202                        param_named_auto width viewport_width
203                        param_named_auto height viewport_height
204        }
205        texture_unit
206        {
207                        filtering bilinear
208        }
209       
210       }
211    }
212}
213
214vertex_program PhaseVS hlsl
215{
216        source GameTools_Phase.hlsl
217        entry_point PhaseVS
218        target vs_2_0
219}
220
221fragment_program Phase_HenyeyGreenSteinPS hlsl
222{
223        source GameTools_Phase.hlsl
224        entry_point HenyeyGreensteinPS
225        target ps_2_0
226}
227
228material Phase_HenyeyGreenStein
229{
230
231   technique
232   {
233     
234      pass
235      {                 
236                vertex_program_ref PhaseVS
237                {       
238                     
239                }
240                fragment_program_ref  Phase_HenyeyGreenSteinPS
241                {
242                               
243                }               
244       
245       }
246    }
247}
Note: See TracBrowser for help on using the repository browser.