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

Revision 2217, 3.7 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 prefer
14}
15
16material PRMDemo/Base
17{
18 technique maintechnique
19 {
20   pass mainpass
21   {
22        IllumTechniques
23        {
24                RenderTechnique DepthShadowReciever
25                {
26                max_light_count 2
27                        vertex_program_name GTP/Basic/LightCPos_VS
28                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
29                        set_light_view true
30                        set_light_farplane true
31                        light_viewproj_param_name LightViewProj
32                        light_view_param_name LightView
33                        light_farplane_param_name lightFarPlane
34                        world_view_proj_param_name WorldViewProj
35                        world_param_name World
36                }
37                RenderTechnique PathMap
38                {
39           
40                }
41        }
42        texture_unit color
43        {
44     colour_op replace
45    }   
46   }   
47 }
48}
49
50
51material PRMDemo/rustyMetal : PRMDemo/Base
52{
53 technique maintechnique
54 {
55   pass mainpass
56   {
57   texture_unit color
58    {
59     texture wrtile.jpg     
60    }
61   }
62  }
63}
64
65material PRMDemo/redwire : PRMDemo/Base
66{
67 technique maintechnique
68 {
69   pass mainpass
70   {
71   texture_unit color
72    {
73     texture redwire.bmp
74    }
75   }
76  }
77}
78
79material PRMDemo/greenwire : PRMDemo/Base
80{
81 technique maintechnique
82 {
83   pass mainpass
84   {
85   texture_unit color
86    {
87     texture greenwire.bmp
88    }
89   }
90  }
91}
92
93material PRMDemo/whitewire : PRMDemo/Base
94{
95 technique maintechnique
96 {
97   pass mainpass
98   {
99   texture_unit color
100    {
101     texture whitewire.bmp
102    }
103   }
104  }
105}
106
107material PRMDemo/iron : PRMDemo/Base
108{
109 technique maintechnique
110 {
111   pass mainpass
112   {
113   texture_unit color
114    {
115     texture w2.jpg
116    }
117   }
118  }
119}
120
121
122vertex_program GTP/PathMap_ComputeWeights_VS hlsl
123{
124   source PathMapWeightCompute.hlsl
125   entry_point vsComputeWeights
126   target vs_2_0   
127}
128
129fragment_program GTP/PathMap_ComputeWeights_PS hlsl
130{
131   source PathMapWeightCompute.hlsl
132   entry_point psComputeWeights
133   target ps_3_0   
134}
135
136material GTP/PathMap_ComputeWeights
137{
138        technique
139        {
140                pass
141                {
142                        depth_check off
143                        cull_harware none
144                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
145                        {
146                               
147                        }
148                        fragment_program_ref GTP/PathMap_ComputeWeights_PS
149                        {
150                        }
151                        texture_unit //entrypoint texture
152                        {
153                                filtering off
154                        }
155                        texture_unit shadow_map //stores distances
156                        {
157                       
158                }
159                }
160               
161        }
162}
163
164fragment_program GTP/PathMap_SumWeights_PS hlsl
165{
166   source PathMapWeightCompute.hlsl
167   entry_point psSumWeights
168   target ps_3_0
169   flow_control prefer     
170}
171
172material GTP/PathMap_SumWeights
173{
174        technique
175        {
176                pass
177                {
178                       
179                        depth_check off
180                        cull_harware none
181                        lighting off
182                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
183                        {
184                               
185                        }
186                        fragment_program_ref GTP/PathMap_SumWeights_PS
187                        {
188                        }
189                        texture_unit //entrypoint texture
190                        {
191                                filtering none
192                        }
193                        texture_unit //entrypoint weight texture
194                        {
195                                filtering none
196                        }
197                        texture_unit //cluster length
198                        {
199                                filtering none
200                        }
201                }
202               
203        }
204}
205
206vertex_program GTP/EPDisplayVS hlsl
207{
208   source PathMapWeightCompute.hlsl
209   entry_point EntryPointDisplayVS
210   target vs_2_0   
211}
212fragment_program GTP/EPDisplayPS hlsl
213{
214   source PathMapWeightCompute.hlsl
215   entry_point EntryPointDisplayPS
216   target ps_2_0   
217}
218
219material GTP/PM/EPBillboards
220{
221 technique
222 {
223   pass
224   {
225                polygon_mode points
226                point_size 10
227                vertex_program_ref GTP/EPDisplayVS
228                {
229                        param_named_auto worldViewProj worldviewproj_matrix     
230                }
231                fragment_program_ref GTP/EPDisplayPS
232                {
233                }
234        texture_unit
235        { 
236                filtering none   
237        }
238   }
239  }
240}
Note: See TracBrowser for help on using the repository browser.