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

Revision 2188, 3.9 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/ShadowReciever/Depth
169{
170 technique
171 {
172   pass
173   {
174     lighting off
175     IllumTechniques
176     {
177        RenderTechnique DepthShadowReciever
178                {
179                        max_light_count 1
180                        vertex_program_name GTP/Basic/LightVPos_VS
181                        fragment_program_name GTP/Basic/SM/Depth_VSM_PS
182                        set_light_view false
183                        set_light_farplane false
184                        world_view_proj_param_name WorldViewProj
185                        world_param_name World
186                        light_viewproj_param_name LightViewProj                 
187                }       
188     }
189   }
190 }
191}
192
193material GTP/Basic/ShadowReciever/ShadowAccum
194{
195 technique
196 {
197   pass
198   {
199    lighting off
200     ambient 1 1 1 1
201        diffuse 1 1 1 1
202        specular 1 1 1 1
203        emissive 0 0 0
204
205     IllumTechniques
206     {
207        RenderTechnique DepthShadowReciever
208                {
209                        max_light_count 1
210                        vertex_program_name GTP/Basic/LightCPos_VS
211                        fragment_program_name GTP/Basic/SM/ShadowAccum_PS
212                        set_light_view true
213                        set_light_farplane false
214                        world_view_proj_param_name WorldViewProj
215                        world_param_name World
216                        light_viewproj_param_name LightViewProj                 
217                }       
218     }
219   }
220 }
221}
Note: See TracBrowser for help on using the repository browser.