source: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/car_noeffects.material @ 2451

Revision 2451, 7.5 KB checked in by szirmay, 17 years ago (diff)
Line 
1
2vertex_program LocalizedVS hlsl
3{
4        source CarReflections.hlsl
5        entry_point LocalizedVS
6        target vs_2_0
7}
8
9fragment_program MetallicReflector hlsl
10{
11        source CarReflections.hlsl
12        entry_point LocalizedMetalPS
13        target ps_3_0
14}
15
16material body1
17{
18        receive_shadows off
19        technique
20        {
21                pass
22                {
23                       
24                        vertex_program_ref LocalizedVS
25                {       
26                        param_named_auto worldViewProj worldviewproj_matrix
27                        param_named_auto world world_matrix
28                                param_named_auto worldI inverse_world_matrix
29                   
30                }
31                        fragment_program_ref MetallicReflector
32                        {
33                                param_named_auto cameraPos camera_position
34                                param_named F0 float3 1.0 0.8 0.7
35                                param_named phongColor float3 0.5 0.0 0.0
36                                param_named_auto lightPosition light_position 0
37                                param_named lastCenter float3 0 0 0
38                                param_named reflectivity float 0.16     
39                                //param_named reflectivity float 1     
40                        }                       
41                }
42        }
43}
44material windscreen1
45{
46        receive_shadows off
47        technique
48        {
49                pass
50                {                       
51                        vertex_program_ref LocalizedVS
52                {       
53                        param_named_auto worldViewProj worldviewproj_matrix
54                        param_named_auto world world_matrix
55                                param_named_auto worldI inverse_world_matrix
56                   
57                }
58                        fragment_program_ref MetallicReflector
59                        {
60                                param_named_auto cameraPos camera_position
61                                param_named F0 float3 1.0 1.0 1.0
62                                param_named phongColor float3 0.02 0.01 0.03
63                                param_named_auto lightPosition light_position 0
64                                param_named lastCenter float3 0 0 0
65                                param_named reflectivity float 0.15     
66                        }                       
67                }
68        }
69}
70
71vertex_program DiffuseVS hlsl
72{
73        source DiffuseBump.hlsl
74        entry_point DiffuseVS
75        target vs_2_0
76}
77
78fragment_program DiffusePS hlsl
79{
80        source DiffuseBump.hlsl
81        entry_point DiffusePS
82        target ps_3_0
83}
84
85material canvas1
86{
87        receive_shadows off
88        technique
89        {
90                pass
91                {                     
92                        vertex_program_ref DiffuseVS
93                        {       
94                                param_named_auto worldViewProj worldviewproj_matrix
95                        param_named_auto world world_matrix
96                                 param_named_auto world_I inverse_world_matrix       
97                        }
98                                               
99                        fragment_program_ref    DiffusePS
100                        {
101                                param_named_auto cameraPos camera_position
102                                param_named REDUCED_CUBEMAP_SIZE int 8
103                                param_named lastCenter float3 0 0 0     
104                                param_named_auto lightPosition light_position 0                                 
105                        }                       
106                       
107                        //Cube map for reflections and refractions     
108                        texture_unit
109                        {
110                                cubic_texture
111                                tex_address_mode clamp
112                                colour_op replace
113                        }
114
115                        //Cube map of distances
116                        texture_unit
117                        {
118                        cubic_texture
119                        tex_address_mode clamp
120                        colour_op replace
121                        }
122                       
123                        texture_unit
124                        {
125                          texture canvas.tga
126                        }
127                       
128                        texture_unit
129                        {
130                          texture canvasnormal.dds
131                        }
132
133               
134                }
135        }
136}
137material lambert3
138{
139        receive_shadows off
140        technique
141        {
142                pass
143                {
144                        //IllumTechniques
145                        //{
146                        //      RenderTechnique ColorCubeMap
147                        //      {
148                        //              update_interval         1
149                        //              distance_calc false
150                        //              face_angle_calc false
151                        //              update_all_face         false
152                        //      }                       
153                        //
154                        //}
155                       
156                        //Cube map for reflections and refractions     
157                        //texture_unit
158                        //{
159                        //      colour_op modulate
160                        //}
161
162                        ambient 0 0 0 1
163                        diffuse 0 0 0 1
164                        specular 0 0 0 1
165                }
166        }
167}
168material syigetelogumi
169{
170receive_shadows off
171        technique
172        {
173                pass
174                {
175                        ambient 0 0 0 1
176                        diffuse 0 0 0 1
177                        specular 0.5 0.5 0.5 20
178                        emissive 0 0 0
179                }
180        }
181}
182
183fragment_program CarMirrorPS hlsl
184{
185        source CarReflections.hlsl
186        entry_point MirrorPS
187        target ps_3_0
188}
189
190material mirror
191{
192receive_shadows off
193        technique
194        {
195                pass
196                {                       
197                        vertex_program_ref LocalizedVS
198                        {       
199                        param_named_auto worldViewProj worldviewproj_matrix
200                        param_named_auto world world_matrix
201                                param_named_auto worldI inverse_world_matrix
202                   
203                        }
204                        fragment_program_ref CarMirrorPS
205                        {
206                                param_named_auto cameraPos camera_position
207                                param_named lastCenter float3 0 0 0
208                        }
209                       
210                        //Cube map for reflections and refractions     
211                        texture_unit
212                        {
213                                cubic_texture
214                                tex_address_mode clamp
215                                colour_op replace
216                        }
217
218                        //Cube map of distances
219                        texture_unit
220                        {
221                                cubic_texture
222                                tex_address_mode clamp
223                                colour_op replace
224                        }               
225                }
226        }
227}
228
229fragment_program LampGlassPS hlsl
230{
231        source CarReflections.hlsl
232        entry_point LampGlassPS
233        target ps_3_0
234}
235
236material elsolampabura
237{
238       
239        //transparency_casts_shadows on
240
241        technique
242        {
243                pass
244                {
245                        vertex_program_ref LocalizedVS
246                        {       
247                          param_named_auto worldViewProj worldviewproj_matrix
248                          param_named_auto world world_matrix
249                          param_named_auto worldI inverse_world_matrix
250                   
251                        }
252                        fragment_program_ref LampGlassPS
253                        {
254                                param_named_auto cameraPos camera_position
255                                param_named lastCenter float3 0 0 0
256                                param_named glasColor float4 0.9 0.85 0.95 0.65
257                        }
258                       
259                        //Cube map for reflections and refractions     
260                        texture_unit
261                        {
262                                cubic_texture
263                                tex_address_mode clamp
264                                colour_op replace
265                        }
266
267                        Cube map of distances
268                        texture_unit
269                        {
270                                cubic_texture
271                                tex_address_mode clamp
272                                colour_op replace
273                        }               
274
275                        scene_blend alpha_blend
276                        depth_write off
277
278                        ambient 1 1 1 0.5
279                        diffuse 1 1 1 0.5
280                        specular 0 0 0 0
281                        emissive 0 0 0
282
283                       
284                }
285        }
286}
287material elsolampabelul
288{
289receive_shadows off
290
291        technique
292        {
293                pass
294                {
295                        ambient 0.786016 0.968 0.878464 1
296                        diffuse 0.786016 0.968 0.878464 1
297                        specular 0 0 0 0
298                        emissive 0 0 0
299                }
300        }
301}
302
303material hatsolampa
304{
305receive_shadows off
306transparency_casts_shadows on
307        technique
308        {
309                pass
310                {
311                        vertex_program_ref LocalizedVS
312                        {       
313                        param_named_auto worldViewProj worldviewproj_matrix
314                        param_named_auto world world_matrix
315                                param_named_auto worldI inverse_world_matrix
316                   
317                        }
318                        fragment_program_ref LampGlassPS
319                        {
320                                param_named_auto cameraPos camera_position
321                                param_named lastCenter float3 0 0 0
322                                param_named glasColor float4 0.9 0.1 0.0 0.7
323                        }
324                       
325                        //Cube map for reflections and refractions     
326                        texture_unit
327                        {
328                                cubic_texture
329                                tex_address_mode clamp
330                                colour_op replace
331                        }
332
333                        //Cube map of distances
334                        texture_unit
335                        {
336                                cubic_texture
337                                tex_address_mode clamp
338                                colour_op replace
339                        }               
340
341                        //scene_blend alpha_blend
342                        //depth_write off
343                }
344        }
345}
346material hatso_lampa_belso
347{
348receive_shadows off
349
350        technique
351        {
352                pass
353                {
354                        ambient 0.1 0.1 0.1 1
355                        diffuse 1 1 1 1
356                        specular 0 0 0 0
357                        emissive 0.2 0.2 0.2
358
359                        //texture_unit
360                        //{
361                        //      texture lampahatul.jpg
362                        //}
363                }
364        }
365}
366
367material index
368{
369receive_shadows off
370
371        technique
372        {
373                pass
374                {
375                       
376                        vertex_program_ref LocalizedVS
377                        {       
378                        param_named_auto worldViewProj worldviewproj_matrix
379                        param_named_auto world world_matrix
380                                param_named_auto worldI inverse_world_matrix
381                   
382                        }
383                        fragment_program_ref MetallicReflector
384                        {
385                                param_named_auto cameraPos camera_position
386                                param_named F0 float3 2.0 1.0 0.2
387                                param_named_auto lightPosition light_position 0
388                                param_named lastCenter float3 0 0 0
389                                param_named reflectivity float 0.6     
390                        }
391                       
392                        //Cube map for reflections and refractions     
393                        texture_unit
394                        {
395                                cubic_texture cubemap.jpg combinedUVW
396                                tex_address_mode clamp
397                                colour_op replace
398                        }
399
400                        //Cube map of distances
401                        texture_unit
402                        {
403                                cubic_texture cubemap.jpg combinedUVW
404                                tex_address_mode clamp
405                                colour_op replace
406                        }               
407                }
408        }
409}
410
Note: See TracBrowser for help on using the repository browser.