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

Revision 2181, 2.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/Distance
89{
90 technique maintechnique
91 {
92  pass mainpass
93  {
94   cull_hardware clockwise
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/CDist_PS
101   {   
102   }   
103  }
104 }
105}
106
107material GTP/Basic/DistanceCCW : GTP/Basic/Distance
108{
109 technique maintechnique
110 {
111  pass mainpass
112  {
113   cull_hardware anticlockwise   
114  }
115 }
116}
117
118material GTP/Basic/Distance_Normalized
119{
120 technique maintechnique
121 {
122  pass mainpass
123  {
124   cull_hardware clockwise
125   vertex_program_ref GTP/Basic/CPos_VS
126   { 
127     param_named_auto WorldViewProj worldviewproj_matrix     
128     param_named_auto WorldView     worldview_matrix
129   }
130   fragment_program_ref GTP/Basic/CDistNorm_PS
131   {   
132    param_named_auto farPlane far_clip_distance
133   }   
134  }
135 }
136}
137
138material GTP/Basic/Distance_NormalizedCCW : GTP/Basic/Distance_Normalized
139{
140 technique maintechnique
141 {
142  pass mainpass
143  {
144   cull_hardware anticlockwise   
145  }
146 }
147}
148
149material GTP/Basic/ShadowReciever/Depth
150{
151 technique
152 {
153   pass
154   {
155     lighting off
156     IllumTechniques
157     {
158        RenderTechnique DepthShadowReciever
159                {
160                        max_light_count 1
161                        vertex_program_name GTP/Basic/LightVPos_VS
162                        fragment_program_name GTP/Basic/SM/Depth_VSM_PS
163                        set_light_view false
164                        set_light_farplane false
165                        world_view_proj_param_name WorldViewProj
166                        world_param_name World
167                        light_viewproj_param_name LightViewProj                 
168                }       
169     }
170   }
171 }
172}
Note: See TracBrowser for help on using the repository browser.