source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreGames/CarGame/Media/materials/scripts/EnvMetals.material @ 3255

Revision 3255, 5.2 KB checked in by szirmay, 15 years ago (diff)
Line 
1
2material EnvMetals/Copper
3{
4
5   technique
6   {
7      pass
8      {
9       
10                IllumTechniques
11                {
12                        RenderTechnique ColorCubeMap
13                        {
14                                update_interval         1
15                                distance_calc true
16                                face_angle_calc true
17                                update_all_face         false
18                        }
19                        RenderTechnique DistanceCubeMap
20                        {
21                                update_interval         1
22                                distance_calc true
23                                face_angle_calc true
24                                update_all_face         false           
25                        }
26                       
27               
28                 }
29                 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
30                {       
31                 param_named_auto worldViewProj worldviewproj_matrix
32                 param_named_auto world world_matrix
33                         param_named_auto worldIT inverse_transpose_world_matrix
34           
35                }
36                 fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
37         {
38                        param_named_auto cameraPos camera_position
39                        //param_named n float3 0.21 0.96 1.17
40                        //param_named k float3 4.16 2.57 2.32
41                        param_named F0 float3 0.95 0.63 0.54
42                        param_named_auto lightPosition light_position 0
43                       
44                }
45               
46                //Cube map for reflections and refractions     
47                texture_unit
48                {
49                        cubic_texture cubemap.jpg combinedUVW
50                        tex_address_mode clamp
51                        colour_op replace
52                }
53
54                //Cube map of distances
55                texture_unit
56                {
57                        cubic_texture cubemap.jpg combinedUVW
58                        tex_address_mode clamp
59                        colour_op replace
60                }
61          }
62    }
63}
64
65
66material EnvMetals/Gold
67{
68
69   technique
70   {
71      pass
72      {
73     
74      IllumTechniques
75                {
76                        RenderTechnique ColorCubeMap
77                        {
78                                update_interval         1
79                                distance_calc true 1.5
80                                face_angle_calc true 1.5               
81                        }
82                        RenderTechnique DistanceCubeMap
83                        {
84                                update_interval         1
85                                distance_calc true 1.5
86                                face_angle_calc true 1.5               
87                        }
88                       
89                 }
90         vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
91         {       
92            param_named_auto worldViewProj worldviewproj_matrix
93            param_named_auto world world_matrix
94           
95         }
96         fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
97         {
98            param_named_auto cameraPos camera_position
99            //param_named n float3 0.16 0.35 1.6
100            //param_named k float3 3.98 2.71 1.92
101            param_named F0 float3 0.96 0.85 0.39
102            param_named_auto lightPosition light_position 0
103                       
104         }
105               
106         //Cube map for reflections and refractions     
107         texture_unit
108         {
109           cubic_texture cubemap.jpg combinedUVW
110           tex_address_mode clamp
111           colour_op replace
112         }
113
114        //Cube map of distances
115         texture_unit
116         {
117           cubic_texture cubemap.jpg combinedUVW
118           tex_address_mode clamp
119           colour_op replace
120         }
121
122
123        }
124    }
125}
126
127
128material EnvMetals/Silver
129{
130
131   technique
132   {
133      pass
134      {
135     
136                IllumTechniques
137                {
138                        RenderTechnique ColorCubeMap
139                        {
140                                update_interval         3
141                                distance_calc true 1.5
142                                face_angle_calc true 1.5               
143                        }
144                        RenderTechnique DistanceCubeMap
145                        {
146                                update_interval         3
147                                distance_calc true 1.5
148                                face_angle_calc true 1.5               
149                        }
150                       
151                        RenderTechnique CausticCaster
152                        {
153                                update_all_face         false
154                                photonmap_resolution    128
155                        }
156                       
157                 }
158          vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
159                {       
160                 param_named_auto worldViewProj worldviewproj_matrix
161                 param_named_auto world world_matrix
162                         param_named_auto worldIT inverse_transpose_world_matrix
163           
164                }
165                fragment_program_ref    GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
166                {
167                        param_named_auto cameraPos camera_position
168            //param_named n float3 0.142 0.124 0.158
169            //param_named k float3 4.52  3.33 2.32
170            param_named F0 float3 0.97 0.95 0.9
171            param_named_auto lightPosition light_position 0
172                       
173         }
174               
175         //Cube map for reflections and refractions     
176         texture_unit
177         {
178           cubic_texture cubemap.jpg combinedUVW
179           tex_address_mode clamp
180           colour_op replace
181         }
182
183        //Cube map of distances
184         texture_unit
185         {
186           cubic_texture cubemap.jpg combinedUVW
187           tex_address_mode clamp
188           colour_op replace
189         }
190
191
192        }
193    }
194}
195
196
197material EnvMetals/Alu
198{
199
200   technique
201   {
202      pass
203      {
204     
205                IllumTechniques
206                {
207                        RenderTechnique ColorCubeMap
208                        {
209                                update_interval         0
210                                distance_calc true 1.5
211                                face_angle_calc true 3.5               
212                        }
213                        RenderTechnique DistanceCubeMap
214                        {
215                                update_interval         0
216                                distance_calc true 1.5
217                                face_angle_calc true 3.5               
218                        }
219                       
220                 }
221       
222         vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
223         {       
224            param_named_auto worldViewProj worldviewproj_matrix
225            param_named_auto world world_matrix
226           
227         }
228         fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
229         {
230            param_named_auto cameraPos camera_position
231            //param_named n float3 1.83 0.96 0.577
232            //param_named k float3 8.31 6.69 5.288
233            param_named F0 float3 0.9 0.92 0.92
234            param_named_auto lightPosition light_position 0
235                       
236         }
237               
238         //Cube map for reflections and refractions     
239         texture_unit
240         {
241           cubic_texture cubemap.jpg combinedUVW
242           tex_address_mode clamp
243           colour_op replace
244         }
245
246        //Cube map of distances
247         texture_unit
248         {
249           cubic_texture cubemap.jpg combinedUVW
250           tex_address_mode clamp
251           colour_op replace
252         }
253
254
255        }
256    }
257}
Note: See TracBrowser for help on using the repository browser.