source: GTP/trunk/App/Demos/Illum/Ogre/Media/Demo/towers.material @ 2186

Revision 2186, 4.4 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
15fragment_program GTP/Demo/ParallaxMapped_PS hlsl
16{
17   source parallax.hlsl
18   entry_point ParallaxSlopeIterationPS
19   target ps_3_0
20}
21
22material towermaterial
23{
24        technique maintechnique
25        {
26            pass mainpass
27                {
28                        vertex_program_ref GTP/Demo/BumpMapped_VS
29                        {
30                          param_named_auto WorldViewProj worldviewproj_matrix 
31                          param_named_auto World world_matrix
32                          param_named_auto WorldI inverse_world_matrix
33                          param_named_auto wLightPos light_position 0
34                          param_named_auto wCamPos camera_position
35                          param_named textureRepeat float 6
36                        }
37                        fragment_program_ref GTP/Demo/ParallaxMapped_PS
38                        {
39                         param_named HEIGHT_SCALE float 0.16
40                         param_named HEIGHT_BIAS float -0.04                   
41                         param_named textureRepeat float 6
42                        }
43                        texture_unit color
44                        {
45                         texture stone.bmp
46                         tex_coord_set 0
47                         colour_op replace
48                        }
49                        texture_unit detail
50                        {
51                         texture towerdetailgrey.bmp
52                         tex_coord_set 1
53                         colour_op modulate
54                        }
55                        texture_unit bump
56                        {
57                         texture stoneNormal.dds
58                         tex_coord_set 0
59                        }
60                       
61                }
62       
63        }
64}
65
66material wallmaterial : towermaterial
67{
68        technique maintechnique
69        {
70            pass  mainpass
71                {               
72                        texture_unit detail
73                        {
74                         texture walldetailgrey.bmp                     
75                        }                       
76                }
77       
78        }
79}
80
81
82
83material towermaterialBump
84{
85        technique maintechnique
86        {
87            pass mainpass
88                {
89                        vertex_program_ref GTP/Demo/BumpMapped_VS
90                        {
91                          param_named_auto WorldViewProj worldviewproj_matrix 
92                          param_named_auto World world_matrix
93                          param_named_auto WorldI inverse_world_matrix
94                          param_named_auto wLightPos light_position 0
95                          param_named_auto wCamPos camera_position
96                          param_named textureRepeat float 6
97                        }
98                        fragment_program_ref GTP/Demo/BumpMapped_PS
99                        {
100                        }
101                        texture_unit color
102                        {
103                         texture stone.bmp
104                         tex_coord_set 0
105                         colour_op replace
106                        }
107                        texture_unit detail
108                        {
109                         texture towerdetail.bmp
110                         tex_coord_set 1
111                         colour_op modulate
112                        }
113                        texture_unit bump
114                        {
115                         texture stoneNormal.dds
116                         tex_coord_set 0
117                        }
118                       
119                }
120       
121        }
122}
123
124material pillarmaterial
125{
126        technique maintechnique
127        {
128            pass  mainpass
129                {       
130                        vertex_program_ref GTP/Demo/BumpMapped_VS
131                        {
132                          param_named_auto WorldViewProj worldviewproj_matrix 
133                          param_named_auto World world_matrix
134                          param_named_auto WorldI inverse_world_matrix
135                          param_named_auto wLightPos light_position 0
136                          param_named_auto wCamPos camera_position
137                          param_named textureRepeat float 1
138                        }
139                        fragment_program_ref GTP/Demo/BumpMapped_PS
140                        {
141                                param_named HEIGHT_SCALE float -0.005
142                            param_named HEIGHT_BIAS float  0.00
143                                param_named textureRepeat float 1
144                        }
145                        texture_unit color
146                        {
147                         texture pillarcolor.bmp
148                         colour_op modulate                     
149                        }       
150                        texture_unit detail
151                        {
152                         texture grounddetail.bmp
153                         colour_op modulate                     
154                        }
155                        texture_unit bump
156                        {
157                         texture pillarbump.dds                 
158                        }               
159                }
160       
161        }
162}
163
164material groundmaterial : towermaterialBump
165{
166        technique maintechnique
167        {
168            pass  mainpass
169                {       
170                        IllumTechniques
171                {
172                        RenderTechnique DepthShadowReciever
173                                {
174                                        max_light_count 1
175                                        vertex_program_name GTP/Basic/LightVPos_VS
176                                        fragment_program_name GTP/Basic/SM/Depth_VSM_PS
177                                        set_light_view false
178                                        set_light_farplane false
179                                        world_view_proj_param_name WorldViewProj
180                                        world_param_name World
181                                        light_viewproj_param_name LightViewProj                 
182                                }       
183                        }
184               
185                        vertex_program_ref GTP/Demo/BumpMapped_VS
186                        {
187                          param_named_auto WorldViewProj worldviewproj_matrix 
188                          param_named_auto World world_matrix
189                          param_named_auto WorldI inverse_world_matrix
190                          param_named_auto wLightPos light_position 0
191                          param_named_auto wCamPos camera_position
192                          param_named textureRepeat float 50
193                        }
194                        fragment_program_ref GTP/Demo/BumpMapped_PS
195                        {
196                                param_named HEIGHT_SCALE float 0.16
197                            param_named HEIGHT_BIAS float  -0.04
198                                param_named textureRepeat float 50
199                        }
200                        texture_unit color
201                        {
202                         texture ground3.bmp
203                         colour_op modulate                     
204                        }       
205                        texture_unit detail
206                        {
207                         texture grounddetail.bmp
208                         colour_op modulate                     
209                        }
210                        texture_unit bump
211                        {
212                         texture groundbump.dds                 
213                        }               
214                }
215       
216        }
217}
Note: See TracBrowser for help on using the repository browser.