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

Revision 2315, 3.9 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program GTP/Demo/BumpMapped_VS hlsl
2{
3   source bump.hlsl
4   entry_point BaseVS
5   target vs_2_0
6}
7
8fragment_program GTP/Demo/BumpMapped_PS hlsl
9{
10   source bump.hlsl
11   entry_point BumpPS
12   target ps_2_0
13}
14
15material DetailTexturedBumpBase
16{
17 technique maintechnique
18 {
19  pass mainpass
20  {
21                       
22                        vertex_program_ref GTP/Demo/BumpMapped_VS
23                        {
24                          param_named_auto WorldViewProj worldviewproj_matrix 
25                          param_named_auto World world_matrix
26                          param_named_auto WorldI inverse_world_matrix
27                          param_named_auto wLightPos light_position 0
28                          param_named_auto wCamPos camera_position
29                          param_named normalCoord float 0
30                        }
31                        fragment_program_ref GTP/Demo/BumpMapped_PS
32                        {
33                          param_named_auto lightDir light_direction 0
34                        }
35  }
36 }
37}
38
39material GreatPillarTrunk1 : DetailTexturedBumpBase
40{
41        technique maintechnique
42        {
43                pass mainpass
44                {
45                        ambient 1 1 1 1
46                        diffuse 1 1 1 1
47                        specular 0.08264 0.08264 0.08264 2
48                        emissive 0 0 0
49                        texture_unit tile_texture
50                        {
51                                texture marble.jpg
52                        }
53                        texture_unit detail_texture
54                        {
55                                texture greatpillardetail.png
56                        }
57                }
58        }
59}
60material GreatHallFloor : DetailTexturedBumpBase
61{
62        technique maintechnique
63        {
64                pass mainpass
65                {
66                        IllumTechniques
67                {
68                        RenderTechnique DepthShadowReceiver
69                                {
70                                        max_light_count 1
71                                        vertex_program_name GTP/Basic/LightCPos_VS
72                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
73                                        set_light_view true
74                                        set_light_farplane true
75                                        light_viewproj_param_name LightViewProj
76                                        light_view_param_name LightView
77                                        light_farplane_param_name lightFarPlane
78                                        world_view_proj_param_name WorldViewProj
79                                        world_param_name World         
80                                }       
81                        }
82                        ambient 1 1 1 1
83                        diffuse 1 1 1 1
84                        specular 0.57852 0.57852 0.57852 25.49
85                        emissive 0 0 0
86                        vertex_program_ref GTP/Demo/BumpMapped_VS
87                        {
88                                param_named normalCoord float 1
89                        }
90                       
91                        texture_unit tile_texture
92                        {
93                                texture greatHallFloorTile.jpg                         
94                        }
95                        texture_unit detail_texture
96                        {
97                                texture greathallfloordetail.png
98                        }
99                }
100        }
101}
102material GreatHallWall : DetailTexturedBumpBase
103{
104        technique maintechnique
105        {
106                pass mainpass
107                {
108                        ambient 1 1 1 1
109                        diffuse 1 1 1 1
110                        specular 0.08264 0.08264 0.08264 2
111                        emissive 0 0 0
112
113                        texture_unit tile_texture
114                        {
115                                texture moriaWall.png                           
116                        }
117                        texture_unit detail_texture
118                        {
119                                texture greatHallWallDetail.png
120                        }
121                }
122        }
123}
124material GreatHallPillarHead : DetailTexturedBumpBase
125{
126        technique maintechnique
127        {
128                pass mainpass
129                {
130                        ambient 1 1 1 1
131                        diffuse 1 1 1 1
132                        specular 0.08264 0.08264 0.08264 2
133                        emissive 0 0 0
134
135                        texture_unit tile_texture
136                        {
137                                texture marble.jpg                             
138                        }
139                        texture_unit detail_texture
140                        {
141                                texture pillarheaddetail.png
142                        }
143                }
144        }
145}
146
147
148material GTP/Moria/Smoke_L_Depth_Illum
149{
150        technique
151        {
152                pass
153                {       
154                        IllumTechniques
155                        {
156                                RenderTechnique HPS
157                                {
158                                        particle_script GTP/Moria/Smoke_Little
159                                        perspective false
160                                        vparam_radius baseRadius
161                                        update_interval 1                               
162                                }
163                                RenderTechnique SphericalBillboard
164                                {
165                                        texture_unit_id         1                                       
166                                }                       
167                                RenderTechnique IllumVolume
168                                {
169                                    material GTP/HPS/Smoke_IllumVolume
170                                        update_interval 1
171                                        texture_unit_id 2
172                                        resolution 128
173                                        lightmatrix_param_name lightViewProj
174                                }
175                        }                               
176                        depth_check off                 
177                        depth_write off
178                        scene_blend alpha_blend
179                        vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
180                        {       
181                                param_named_auto worldView worldview_matrix
182                                param_named_auto worldViewInv inverse_worldview_matrix
183                                param_named_auto Proj projection_matrix
184                                param_named_auto width viewport_width   
185                                param_named_auto height viewport_height
186                                param_named baseRadius float 1                                                                                     
187                        }
188                        fragment_program_ref GTP/HPS/Large_Depth_Illum_PS
189                        {
190                       
191                        }                       
192                        //impostor texture
193                        texture_unit
194                        {
195                                //filtering none
196                        }
197                        //scene depth texture
198                        texture_unit
199                        {
200                                filtering none
201                        }
202                        //Ilumination volume
203                        texture_unit
204                        {
205                                //filtering none
206                        }
207                }
208        }
209}
210
Note: See TracBrowser for help on using the repository browser.