source: GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/moria.material @ 2373

Revision 2373, 4.6 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program GTP/MoriaDemo/MoriaHallBase_VS hlsl
2{
3   source MoriaHallBase.hlsl
4   entry_point MoriaHallBase_VS
5   target vs_3_0
6}
7
8fragment_program GTP/MoriaDemo/MoriaHallBase_PS hlsl
9{
10   source MoriaHallBase.hlsl
11   entry_point MoriaHallBase_PS
12   target ps_3_0
13}
14
15material MoriaHallBase
16{
17 technique maintechnique
18 {
19  pass mainpass
20  {
21                        IllumTechniques
22                        {
23                                RenderTechnique PathMap
24                                {
25                                new_passes false
26                                        start_tex_id 3
27                                }       
28                                RenderTechnique DepthShadowReceiver
29                                {
30                                        max_light_count 2
31                                        set_light_viewproj false
32                                        set_light_view true
33                                        set_light_farplane true
34                                        light_view_param_name LightView
35                                        light_farplane_param_name lightFarPlane
36                                        new_passes false
37                                        start_tex_id 6
38                                }                               
39                        }
40                        vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
41                        {
42                          param_named_auto WorldViewProj worldviewproj_matrix 
43                          param_named_auto World world_matrix
44                          param_named_auto WorldI inverse_world_matrix
45                          param_named_auto wCamPos camera_position
46                          param_named normalCoord float 0
47                        }
48                        fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS
49                        {
50                          param_named_auto wLightPos1 light_position 0
51                          param_named_auto wLightPos2 light_position 1                           
52                          param_named_auto lightRange1 light_attenuation 0
53                          param_named_auto lightRange2 light_attenuation 1
54                          param_named_auto lightPower1 light_power 0
55                          param_named_auto lightPower2 light_power 1
56                          param_named_auto lightColor1 light_diffuse_colour 0
57                          param_named_auto lightColor2 light_diffuse_colour 1
58                          param_named specularity float 120
59                        }
60                        texture_unit tile_texture
61                        {
62                        }
63                        texture_unit detail_texture
64                        {
65                        }
66                        texture_unit displace
67                        {
68                        }
69                        texture_unit pathMap
70                        {
71                        }
72                        texture_unit PMweightIndex
73                        {
74                        }
75                        texture_unit PMweight
76                        {
77                        }
78                        texture_unit SM1
79                        {
80                        }
81                        texture_unit SM2
82                        {
83                        }                       
84  }
85 }
86}
87
88material GreatPillarTrunk : MoriaHallBase
89{
90        technique maintechnique
91        {
92                pass mainpass
93                {
94                        texture_unit tile_texture
95                        {
96                                texture marble.jpg
97                        }
98                        texture_unit detail_texture
99                        {
100                                texture greatpillardetail.png
101                        }
102                        texture_unit displace
103                        {
104                                texture greatpillardisplace.dds
105                        }
106                }
107        }
108}
109material GreatHallFloor : MoriaHallBase
110{
111        technique maintechnique
112        {
113                pass mainpass
114                {                       
115                        vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
116                        {
117                                param_named normalCoord float 1
118                        }
119                       
120                        texture_unit tile_texture
121                        {
122                                texture greatHallFloorTile.jpg                         
123                        }
124                        texture_unit detail_texture
125                        {
126                                texture greathallfloordetail.png
127                        }
128                        texture_unit displace
129                        {
130                                texture floornormal.jpg
131                        }
132                }
133        }
134}
135material GreatHallWall : MoriaHallBase
136{
137        technique maintechnique
138        {
139                pass mainpass
140                {
141                        texture_unit tile_texture
142                        {
143                                texture moriaWall.png                           
144                        }
145                        texture_unit detail_texture
146                        {
147                                texture greatHallWallDetail.png
148                        }
149                }
150        }
151}
152material GreatHallPillarHead : MoriaHallBase
153{
154        technique maintechnique
155        {
156                pass mainpass
157                {
158                        texture_unit tile_texture
159                        {
160                                texture marble.jpg                             
161                        }
162                        texture_unit detail_texture
163                        {
164                                texture pillarheaddetail.png
165                        }
166                }
167        }
168}
169
170material GreatHallCeiling : MoriaHallBase
171{
172        technique maintechnique
173        {
174                pass mainpass
175                {
176                        texture_unit tile_texture
177                        {
178                                texture marble.jpg                             
179                        }
180                        texture_unit detail_texture
181                        {
182                                texture moriaceilingdetail.png
183                        }
184                }
185        }
186}
187
188
189material GTP/Moria/Smoke_L_Depth_Illum
190{
191        technique
192        {
193                pass
194                {       
195                        IllumTechniques
196                        {
197                                RenderTechnique HPS
198                                {
199                                        particle_script GTP/Moria/Smoke_Little
200                                        perspective false
201                                        vparam_radius baseRadius
202                                        update_interval 1                               
203                                }
204                                RenderTechnique SphericalBillboard
205                                {
206                                        texture_unit_id         1                                       
207                                }                       
208                                RenderTechnique IllumVolume
209                                {
210                                    material GTP/HPS/Smoke_IllumVolume
211                                        update_interval 1
212                                        texture_unit_id 2
213                                        resolution 128
214                                        lightmatrix_param_name lightViewProj
215                                }
216                        }                               
217                        depth_check off                 
218                        depth_write off
219                        scene_blend alpha_blend
220                        vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
221                        {       
222                                param_named_auto worldView worldview_matrix
223                                param_named_auto worldViewInv inverse_worldview_matrix
224                                param_named_auto Proj projection_matrix
225                                param_named_auto width viewport_width   
226                                param_named_auto height viewport_height
227                                param_named baseRadius float 1                                                                                     
228                        }
229                        fragment_program_ref GTP/HPS/Large_Depth_Illum_PS
230                        {
231                       
232                        }                       
233                        //impostor texture
234                        texture_unit
235                        {
236                                //filtering none
237                        }
238                        //scene depth texture
239                        texture_unit
240                        {
241                                filtering none
242                        }
243                        //Ilumination volume
244                        texture_unit
245                        {
246                                //filtering none
247                        }
248                }
249        }
250}
251
Note: See TracBrowser for help on using the repository browser.