source: GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PRMDemo.material @ 2207

Revision 2207, 3.2 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program GTP/PathMap_VS hlsl
2{
3   source PathMap.hlsl
4   entry_point vsWalk
5   target vs_2_0   
6}
7
8fragment_program GTP/PathMap_PS hlsl
9{
10   source PathMap.hlsl
11   entry_point psWalk
12   target ps_3_0
13   flow_control avoid
14}
15
16material PRMDemo/Base
17{
18 technique maintechnique
19 {
20   pass mainpass
21   {
22        IllumTechniques
23        {
24                RenderTechnique PathMap
25                {
26           
27                }
28        }
29        texture_unit color
30        {
31     colour_op replace
32    }
33   }
34   
35 }
36}
37
38
39material PRMDemo/rustyMetal : PRMDemo/Base
40{
41 technique maintechnique
42 {
43   pass mainpass
44   {
45   texture_unit color
46    {
47     texture wrtile.jpg     
48    }
49   }
50  }
51}
52
53material PRMDemo/redwire : PRMDemo/Base
54{
55 technique maintechnique
56 {
57   pass mainpass
58   {
59   texture_unit color
60    {
61     texture redwire.bmp
62    }
63   }
64  }
65}
66
67material PRMDemo/greenwire : PRMDemo/Base
68{
69 technique maintechnique
70 {
71   pass mainpass
72   {
73   texture_unit color
74    {
75     texture greenwire.bmp
76    }
77   }
78  }
79}
80
81material PRMDemo/whitewire : PRMDemo/Base
82{
83 technique maintechnique
84 {
85   pass mainpass
86   {
87   texture_unit color
88    {
89     texture whitewire.bmp
90    }
91   }
92  }
93}
94
95material PRMDemo/iron : PRMDemo/Base
96{
97 technique maintechnique
98 {
99   pass mainpass
100   {
101   texture_unit color
102    {
103     texture w2.jpg
104    }
105   }
106  }
107}
108
109
110vertex_program GTP/PathMap_ComputeWeights_VS hlsl
111{
112   source PathMapWeightCompute.hlsl
113   entry_point vsComputeWeights
114   target vs_2_0   
115}
116
117fragment_program GTP/PathMap_ComputeWeights_PS hlsl
118{
119   source PathMapWeightCompute.hlsl
120   entry_point psComputeWeights
121   target ps_2_0   
122}
123
124material GTP/PathMap_ComputeWeights
125{
126        technique
127        {
128                pass
129                {
130                        depth_check off
131                        cull_harware none
132                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
133                        {
134                               
135                        }
136                        fragment_program_ref GTP/PathMap_ComputeWeights_PS
137                        {
138                        }
139                        texture_unit //entrypoint texture
140                        {
141                                filtering off
142                        }
143                }
144               
145        }
146}
147
148fragment_program GTP/PathMap_SumWeights_PS hlsl
149{
150   source PathMapWeightCompute.hlsl
151   entry_point psSumWeights
152   target ps_3_0
153   flow_control prefer     
154}
155
156material GTP/PathMap_SumWeights
157{
158        technique
159        {
160                pass
161                {
162                       
163                        depth_check off
164                        cull_harware none
165                        lighting off
166                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
167                        {
168                               
169                        }
170                        fragment_program_ref GTP/PathMap_SumWeights_PS
171                        {
172                        }
173                        texture_unit //entrypoint texture
174                        {
175                                filtering off
176                        }
177                        texture_unit //entrypoint weight texture
178                        {
179                                filtering off
180                        }
181                        texture_unit //cluster length
182                        {
183                                filtering off
184                        }
185                }
186               
187        }
188}
189
190vertex_program GTP/EPDisplayVS hlsl
191{
192   source PathMapWeightCompute.hlsl
193   entry_point EntryPointDisplayVS
194   target vs_2_0   
195}
196fragment_program GTP/EPDisplayPS hlsl
197{
198   source PathMapWeightCompute.hlsl
199   entry_point EntryPointDisplayPS
200   target ps_2_0   
201}
202
203material GTP/PM/EPBillboards
204{
205 technique
206 {
207   pass
208   {
209                polygon_mode points
210                point_size 10
211                vertex_program_ref GTP/EPDisplayVS
212                {
213                        param_named_auto worldViewProj worldviewproj_matrix     
214                }
215                fragment_program_ref GTP/EPDisplayPS
216                {
217                }
218        texture_unit
219        { 
220                filtering none   
221        }
222   }
223  }
224}
Note: See TracBrowser for help on using the repository browser.