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

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