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

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