source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.material @ 2550

Revision 2550, 4.6 KB checked in by szirmay, 17 years ago (diff)
RevLine 
[2024]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   }
[2489]30   fragment_program_ref GTP/Basic/PlainTex2D_PS
[2024]31   {   
32   }   
33   texture_unit
34   {
35   }
36  }
37 }
38}
39
40material GTP/Basic/Depth
41{
[2181]42 technique maintechnique
[2024]43 {
[2181]44  pass mainpass
[2024]45  {
[2294]46   cull_hardware none
[2024]47   vertex_program_ref GTP/Basic/VPos_VS
48   { 
49     param_named_auto WorldViewProj worldviewproj_matrix     
50   }
[2181]51   fragment_program_ref GTP/Basic/VDepth_PS
[2024]52   {   
53   }   
54  }
55 }
56}
57
58material GTP/Basic/DepthCCW : GTP/Basic/Depth
59{
[2181]60 technique maintechnique
[2024]61 {
[2181]62  pass mainpass
[2024]63  {
64   cull_hardware anticlockwise   
65  }
66 }
67}
68
69material GTP/Basic/CameraDepth
70{
[2294]71 technique maintechnique
[2024]72 {
[2294]73  pass mainpass
[2024]74  {
[2550]75   cull_hardware none
[2024]76   vertex_program_ref GTP/Basic/CPos_VS
77   { 
78     param_named_auto WorldViewProj worldviewproj_matrix
79     param_named_auto WorldView     worldview_matrix     
80   }
[2181]81   fragment_program_ref GTP/Basic/CDepth_PS
[2311]82   {
83     param_named_auto farplane far_clip_distance
[2024]84   }   
85  }
86 }
87}
88
[2294]89material GTP/Basic/CameraDepthCCW : GTP/Basic/CameraDepth
[2188]90{
[2294]91 technique maintechnique
[2188]92 {
[2294]93  pass mainpass
[2188]94  {
[2294]95   cull_hardware anticlockwise   
[2188]96  }
97 }
98}
99
[2024]100material GTP/Basic/Distance
101{
[2181]102 technique maintechnique
[2024]103 {
[2181]104  pass mainpass
[2024]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   }
[2040]112   fragment_program_ref GTP/Basic/CDist_PS
[2024]113   {   
114   }   
115  }
116 }
117}
118
119material GTP/Basic/DistanceCCW : GTP/Basic/Distance
120{
[2181]121 technique maintechnique
[2024]122 {
[2181]123  pass mainpass
[2024]124  {
125   cull_hardware anticlockwise   
126  }
127 }
[2179]128}
129
130material GTP/Basic/Distance_Normalized
131{
[2181]132 technique maintechnique
[2179]133 {
[2181]134  pass mainpass
[2179]135  {
[2271]136   cull_hardware none
[2179]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{
[2181]152 technique maintechnique
[2179]153 {
[2181]154  pass mainpass
[2179]155  {
156   cull_hardware anticlockwise   
157  }
158 }
159}
160
[2266]161material GTP/Basic/Focusing
[2179]162{
163 technique
164 {
[2266]165  pass
166  {
167        vertex_program_ref GTP/Basic/LightVPos_VS
[2294]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    }
[2266]173        fragment_program_ref  GTP/Basic/LightVPos_PS
[2294]174    {
[2266]175           
[2294]176    }
[2266]177  }
178 }             
179}
180
[2284]181material GTP/Basic/ShadowReceiver/Depth_VSM
[2266]182{
183 technique
184 {
[2179]185   pass
186   {
187     lighting off
188     IllumTechniques
189     {
[2284]190        RenderTechnique DepthShadowReceiver
[2266]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        }       
[2179]201     }
202   }
203 }
[2188]204}
205
[2284]206material GTP/Basic/ShadowReceiver/Distance_VSM
[2266]207{
208 technique
209 {
210   pass
211   {
212     lighting off
213     IllumTechniques
214     {
[2284]215        RenderTechnique DepthShadowReceiver
[2266]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
[2284]233material GTP/Basic/ShadowReceiver/ShadowAccum
[2188]234{
235 technique
236 {
237   pass
238   {
[2266]239     lighting off   
[2188]240     IllumTechniques
241     {
[2284]242        RenderTechnique DepthShadowReceiver
[2188]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 }
[2024]256}
Note: See TracBrowser for help on using the repository browser.