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

Revision 2386, 4.7 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 1
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                          param_named texture_repeat float 1
48                        }
49                        fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS
50                        {
51                          param_named_auto wLightPos1 light_position 0
52                          param_named_auto wLightPos2 light_position 1                           
53                          param_named_auto lightRange1 light_attenuation 0
54                          param_named_auto lightRange2 light_attenuation 1
55                          param_named_auto lightPower1 light_power 0
56                          param_named_auto lightPower2 light_power 1
57                          param_named_auto lightColor1 light_diffuse_colour 0
58                          param_named_auto lightColor2 light_diffuse_colour 1
59                          param_named specularity float 20
60                          param_named specularColor float4 0.2 0.2 0.2 0.2                       
61                        }
62                        texture_unit tile_texture
63                        {
64                        }
65                        texture_unit detail_texture
66                        {
67                        }
68                        texture_unit displace
69                        {
70                        }
71                        texture_unit pathMap
72                        {
73                        }
74                        texture_unit PMweightIndex
75                        {
76                        }
77                        texture_unit PMweight
78                        {
79                        }
80                        texture_unit SM1
81                        {
82                        }
83                        texture_unit SM2
84                        {
85                        }                       
86  }
87 }
88}
89
90material GreatPillarTrunk : MoriaHallBase
91{
92        technique maintechnique
93        {
94                pass mainpass
95                {
96                        texture_unit tile_texture
97                        {
98                                texture marble.jpg
99                        }
100                        texture_unit detail_texture
101                        {
102                                texture greatpillardetail.png
103                        }
104                        texture_unit displace
105                        {
106                                texture greatpillardisplace.dds
107                        }
108                }
109        }
110}
111material GreatHallFloor : MoriaHallBase
112{
113        technique maintechnique
114        {
115                pass mainpass
116                {                       
117                        vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
118                        {
119                                param_named normalCoord float 1
120                                param_named texture_repeat float 3
121                        }
122                       
123                        texture_unit tile_texture
124                        {
125                                texture greatHallFloorTile.jpg                         
126                        }
127                        texture_unit detail_texture
128                        {
129                                texture greathallfloordetail.png
130                        }
131                        texture_unit displace
132                        {
133                                texture floornormal.jpg
134                        }
135                }
136        }
137}
138material GreatHallWall : MoriaHallBase
139{
140        technique maintechnique
141        {
142                pass mainpass
143                {
144                        texture_unit tile_texture
145                        {
146                                texture moriaWall.png                           
147                        }
148                        texture_unit detail_texture
149                        {
150                                texture greatHallWallDetail.png
151                        }
152                }
153        }
154}
155material GreatHallPillarHead : MoriaHallBase
156{
157        technique maintechnique
158        {
159                pass mainpass
160                {
161                        texture_unit tile_texture
162                        {
163                                texture marble.jpg                             
164                        }
165                        texture_unit detail_texture
166                        {
167                                texture pillarheaddetail.png
168                        }
169                }
170        }
171}
172
173material GreatHallCeiling : MoriaHallBase
174{
175        technique maintechnique
176        {
177                pass mainpass
178                {
179                        texture_unit tile_texture
180                        {
181                                texture marble.jpg                             
182                        }
183                        texture_unit detail_texture
184                        {
185                                texture moriaceilingdetail.png
186                        }
187                }
188        }
189}
190
191
192material GTP/Moria/Smoke_L_Depth_Illum
193{
194        technique
195        {
196                pass
197                {       
198                        IllumTechniques
199                        {
200                                RenderTechnique HPS
201                                {
202                                        particle_script GTP/Moria/Smoke_Little
203                                        perspective false
204                                        vparam_radius baseRadius
205                                        update_interval 1                               
206                                }
207                                RenderTechnique SphericalBillboard
208                                {
209                                        texture_unit_id         1                                       
210                                }                       
211                                RenderTechnique IllumVolume
212                                {
213                                    material GTP/HPS/Smoke_IllumVolume
214                                        update_interval 1
215                                        texture_unit_id 2
216                                        resolution 128
217                                        lightmatrix_param_name lightViewProj
218                                }
219                        }                               
220                        depth_check off                 
221                        depth_write off
222                        scene_blend alpha_blend
223                        vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
224                        {       
225                                param_named_auto worldView worldview_matrix
226                                param_named_auto worldViewInv inverse_worldview_matrix
227                                param_named_auto Proj projection_matrix
228                                param_named_auto width viewport_width   
229                                param_named_auto height viewport_height
230                                param_named baseRadius float 1                                                                                     
231                        }
232                        fragment_program_ref GTP/HPS/Large_Depth_Illum_PS
233                        {
234                       
235                        }                       
236                        //impostor texture
237                        texture_unit
238                        {
239                                //filtering none
240                        }
241                        //scene depth texture
242                        texture_unit
243                        {
244                                filtering none
245                        }
246                        //Ilumination volume
247                        texture_unit
248                        {
249                                //filtering none
250                        }
251                }
252        }
253}
254
Note: See TracBrowser for help on using the repository browser.