source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/precompiled/app/OgreIllumModule_Resources/materials/GTPBasic/GTPBasic.material @ 3255

Revision 3255, 5.8 KB checked in by szirmay, 15 years ago (diff)
Line 
1material GTP/Basic/Plain
2{
3 technique
4 {
5  pass
6  {
7   cull_hardware clockwise   
8   vertex_program_ref GTP/Basic/Plain_VS
9   {
10     param_named_auto WorldViewProj worldviewproj_matrix 
11   }
12   vertex_program_ref GTP/Basic/Plain_PS
13   {   
14   }
15  }
16 }
17}
18
19material GTP/Basic/PlainTex
20{
21 technique
22 {
23  pass
24  {
25   cull_hardware clockwise
26   vertex_program_ref GTP/Basic/PlainTex_VS
27   { 
28     param_named_auto WorldViewProj worldviewproj_matrix     
29   }
30   fragment_program_ref GTP/Basic/PlainTex2D_PS
31   {   
32   }   
33   texture_unit
34   {
35   }
36  }
37 }
38}
39
40material GTP/Basic/Depth
41{
42 technique maintechnique
43 {
44  pass mainpass
45  {
46   cull_hardware none
47   vertex_program_ref GTP/Basic/VPos_VS
48   { 
49     param_named_auto WorldViewProj worldviewproj_matrix     
50   }
51   fragment_program_ref GTP/Basic/VDepth_PS
52   {   
53   }   
54  }
55 }
56}
57
58material GTP/Basic/DepthCCW : GTP/Basic/Depth
59{
60 technique maintechnique
61 {
62  pass mainpass
63  {
64   cull_hardware anticlockwise   
65  }
66 }
67}
68
69material GTP/Basic/CameraDepth
70{
71 technique maintechnique
72 {
73  pass mainpass
74  {
75   cull_hardware none
76   vertex_program_ref GTP/Basic/CPos_VS
77   { 
78     param_named_auto WorldViewProj worldviewproj_matrix
79     param_named_auto WorldView     worldview_matrix     
80   }
81   fragment_program_ref GTP/Basic/CDepth_PS
82   {
83     param_named_auto farplane far_clip_distance
84   }   
85  }
86 }
87}
88
89material GTP/Basic/CameraDepthCCW : GTP/Basic/CameraDepth
90{
91 technique maintechnique
92 {
93  pass mainpass
94  {
95   cull_hardware anticlockwise   
96  }
97 }
98}
99
100material GTP/Basic/Distance
101{
102 technique maintechnique
103 {
104  pass mainpass
105  {
106   cull_hardware clockwise
107   vertex_program_ref GTP/Basic/CPos_VS
108   { 
109     param_named_auto WorldViewProj worldviewproj_matrix     
110     param_named_auto WorldView     worldview_matrix
111   }
112   fragment_program_ref GTP/Basic/CDist_PS
113   {   
114   }   
115  }
116 }
117}
118
119material GTP/Basic/DistanceCCW : GTP/Basic/Distance
120{
121 technique maintechnique
122 {
123  pass mainpass
124  {
125   cull_hardware anticlockwise   
126  }
127 }
128}
129
130material GTP/Basic/Distance_Normalized
131{
132 technique maintechnique
133 {
134  pass mainpass
135  {
136   cull_hardware none
137   vertex_program_ref GTP/Basic/CPos_VS
138   { 
139     param_named_auto WorldViewProj worldviewproj_matrix     
140     param_named_auto WorldView     worldview_matrix
141   }
142   fragment_program_ref GTP/Basic/CDistNorm_PS
143   {   
144    param_named_auto farPlane far_clip_distance
145   }   
146  }
147 }
148}
149
150material GTP/Basic/Distance_NormalizedCCW : GTP/Basic/Distance_Normalized
151{
152 technique maintechnique
153 {
154  pass mainpass
155  {
156   cull_hardware anticlockwise   
157  }
158 }
159}
160
161material GTP/Basic/Focusing
162{
163 technique
164 {
165  pass
166  {
167        vertex_program_ref GTP/Basic/LightVPos_VS
168    {       
169            param_named_auto    World                   world_matrix
170        param_named_auto        WorldViewProj   worldviewproj_matrix
171            param_named                 LightViewProj   matrix4x4 1 0 0 0 0 1 0 0 0 0  1 0 0 0 0 1
172    }
173        fragment_program_ref  GTP/Basic/LightVPos_PS
174    {
175           
176    }
177  }
178 }             
179}
180
181material GTP/Basic/ShadowReceiver/Depth_VSM
182{
183 technique
184 {
185   pass
186   {
187     lighting off
188     IllumTechniques
189     {
190        RenderTechnique DepthShadowReceiver
191        {
192                max_light_count 1
193                vertex_program_name GTP/Basic/LightVPos_VS
194                fragment_program_name GTP/Basic/SM/Depth_VSM_PS
195                set_light_view false
196                set_light_farplane false
197                world_view_proj_param_name WorldViewProj
198                world_param_name World
199                light_viewproj_param_name LightViewProj                 
200        }       
201     }
202   }
203 }
204}
205
206material GTP/Basic/ShadowReceiver/Distance_VSM
207{
208 technique
209 {
210   pass
211   {
212     lighting off
213     IllumTechniques
214     {
215        RenderTechnique DepthShadowReceiver
216        {
217                max_light_count 1
218                vertex_program_name GTP/Basic/LightCPos_VS
219                fragment_program_name GTP/Basic/SM/Dist_VSM_PS
220                world_view_proj_param_name WorldViewProj
221                world_param_name World
222                light_viewproj_param_name LightViewProj
223                set_light_view true
224                set_light_farplane true         
225                light_view_param_name LightView
226                light_farplane_param_name lightFarPlane
227        }       
228     }
229   }
230 }
231}
232
233material GTP/Basic/ShadowReceiver/ShadowAccum
234{
235 technique
236 {
237   pass
238   {
239     lighting off   
240     IllumTechniques
241     {
242        RenderTechnique DepthShadowReceiver
243                {
244                        max_light_count 1
245                        vertex_program_name GTP/Basic/LightCPos_VS
246                        fragment_program_name GTP/Basic/SM/ShadowAccum_PS
247                        set_light_view true
248                        set_light_farplane false
249                        world_view_proj_param_name WorldViewProj
250                        world_param_name World
251                        light_viewproj_param_name LightViewProj                 
252                }       
253     }
254   }
255 }
256}
257
258material GTP/Basic/FSQuadBlurCubeFace
259{
260
261   technique
262   {
263     
264      pass
265      {                 
266        vertex_program_ref GTP/Basic/FSQuadBlurCubeFace_VS
267        {       
268                     
269        }
270        fragment_program_ref  GTP/Basic/FSQuadBlurCubeFace_PS
271        {
272                        param_named_auto width viewport_width
273                        param_named_auto height viewport_height
274                        param_named face float 0
275        }
276        texture_unit
277        {
278                        filtering bilinear
279        }
280       
281       }
282    }
283}
284
285material GTP/Basic/Blur4x4
286{
287
288   technique
289   {
290     
291      pass
292      {                 
293        vertex_program_ref GTP/Basic/FSQuad_VS
294        {       
295                     
296        }
297        fragment_program_ref  GTP/Basic/FSQuadBlur4x4_PS
298        {
299                param_named_auto width viewport_width
300                param_named_auto height viewport_height
301        }
302        texture_unit
303        {
304                filtering bilinear
305        }
306       
307       }
308    }
309}
310
311material GTP/Basic/Phase/HenyeyGreenStein
312{
313
314   technique
315   {
316     
317      pass
318      {                 
319                vertex_program_ref GTP/Basic/Phase_VS
320                {       
321                     
322                }
323                fragment_program_ref  GTP/Basic/Phase_HenyeyGreenStein_PS
324                {
325                               
326                }               
327       
328       }
329    }
330}
331
332
333
Note: See TracBrowser for help on using the repository browser.