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

Revision 2266, 4.7 KB checked in by szirmay, 17 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   vertex_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 clockwise
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
72 {
73  pass
74  {
75   cull_hardware clockwise
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   }   
84  }
85 }
86}
87
88material GTP/Basic/CameraDepthCCW : GTP/Basic/CameraDepthCCW
89{
90 technique
91 {
92  pass
93  {
94   cull_hardware anticlockwise
95   vertex_program_ref GTP/Basic/CPos_VS
96   { 
97     param_named_auto WorldViewProj worldviewproj_matrix
98     param_named_auto WorldView     worldview_matrix     
99   }
100   fragment_program_ref GTP/Basic/CDepth_PS
101   {   
102   }   
103  }
104 }
105}
106
107material GTP/Basic/Distance
108{
109 technique maintechnique
110 {
111  pass mainpass
112  {
113   cull_hardware clockwise
114   vertex_program_ref GTP/Basic/CPos_VS
115   { 
116     param_named_auto WorldViewProj worldviewproj_matrix     
117     param_named_auto WorldView     worldview_matrix
118   }
119   fragment_program_ref GTP/Basic/CDist_PS
120   {   
121   }   
122  }
123 }
124}
125
126material GTP/Basic/DistanceCCW : GTP/Basic/Distance
127{
128 technique maintechnique
129 {
130  pass mainpass
131  {
132   cull_hardware anticlockwise   
133  }
134 }
135}
136
137material GTP/Basic/Distance_Normalized
138{
139 technique maintechnique
140 {
141  pass mainpass
142  {
143   cull_hardware clockwise
144   vertex_program_ref GTP/Basic/CPos_VS
145   { 
146     param_named_auto WorldViewProj worldviewproj_matrix     
147     param_named_auto WorldView     worldview_matrix
148   }
149   fragment_program_ref GTP/Basic/CDistNorm_PS
150   {   
151    param_named_auto farPlane far_clip_distance
152   }   
153  }
154 }
155}
156
157material GTP/Basic/Distance_NormalizedCCW : GTP/Basic/Distance_Normalized
158{
159 technique maintechnique
160 {
161  pass mainpass
162  {
163   cull_hardware anticlockwise   
164  }
165 }
166}
167
168material GTP/Basic/Focusing
169{
170 technique
171 {
172  pass
173  {
174        vertex_program_ref GTP/Basic/LightVPos_VS
175        {       
176            param_named_auto    World           world_matrix
177            param_named_auto    WorldViewProj   worldviewproj_matrix
178            param_named         LightViewProj   matrix4x4       
179        }
180        fragment_program_ref  GTP/Basic/LightVPos_PS
181        {
182           
183        }
184  }
185 }             
186}
187
188material GTP/Basic/ShadowReciever/Depth_VSM
189{
190 technique
191 {
192   pass
193   {
194     lighting off
195     IllumTechniques
196     {
197        RenderTechnique DepthShadowReciever
198        {
199                max_light_count 1
200                vertex_program_name GTP/Basic/LightVPos_VS
201                fragment_program_name GTP/Basic/SM/Depth_VSM_PS
202                set_light_view false
203                set_light_farplane false
204                world_view_proj_param_name WorldViewProj
205                world_param_name World
206                light_viewproj_param_name LightViewProj                 
207        }       
208     }
209   }
210 }
211}
212
213material GTP/Basic/ShadowReciever/Distance_VSM
214{
215 technique
216 {
217   pass
218   {
219     lighting off
220     IllumTechniques
221     {
222        RenderTechnique DepthShadowReciever
223        {
224                max_light_count 1
225                vertex_program_name GTP/Basic/LightCPos_VS
226                fragment_program_name GTP/Basic/SM/Dist_VSM_PS
227                world_view_proj_param_name WorldViewProj
228                world_param_name World
229                light_viewproj_param_name LightViewProj
230                set_light_view true
231                set_light_farplane true         
232                light_view_param_name LightView
233                light_farplane_param_name lightFarPlane
234        }       
235     }
236   }
237 }
238}
239
240material GTP/Basic/ShadowReciever/ShadowAccum
241{
242 technique
243 {
244   pass
245   {
246     lighting off   
247     IllumTechniques
248     {
249        RenderTechnique DepthShadowReciever
250                {
251                        max_light_count 1
252                        vertex_program_name GTP/Basic/LightCPos_VS
253                        fragment_program_name GTP/Basic/SM/ShadowAccum_PS
254                        set_light_view true
255                        set_light_farplane false
256                        world_view_proj_param_name WorldViewProj
257                        world_param_name World
258                        light_viewproj_param_name LightViewProj                 
259                }       
260     }
261   }
262 }
263}
Note: See TracBrowser for help on using the repository browser.