1 |
|
---|
2 | vertex_program LocalizedVS hlsl
|
---|
3 | {
|
---|
4 | source CarReflections.hlsl
|
---|
5 | entry_point LocalizedVS
|
---|
6 | target vs_2_0
|
---|
7 | }
|
---|
8 |
|
---|
9 | fragment_program MetallicReflector hlsl
|
---|
10 | {
|
---|
11 | source CarReflections.hlsl
|
---|
12 | entry_point LocalizedMetalPS
|
---|
13 | target ps_3_0
|
---|
14 | }
|
---|
15 |
|
---|
16 | material body1
|
---|
17 | {
|
---|
18 | receive_shadows off
|
---|
19 | technique
|
---|
20 | {
|
---|
21 | pass
|
---|
22 | {
|
---|
23 |
|
---|
24 | IllumTechniques
|
---|
25 | {
|
---|
26 | RenderTechnique ColorCubeMap
|
---|
27 | {
|
---|
28 | update_interval 1
|
---|
29 | distance_calc false
|
---|
30 | face_angle_calc false
|
---|
31 | update_all_face false
|
---|
32 | }
|
---|
33 | RenderTechnique DistanceCubeMap
|
---|
34 | {
|
---|
35 | update_interval 1
|
---|
36 | distance_calc false
|
---|
37 | face_angle_calc false
|
---|
38 | update_all_face false
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 | }
|
---|
43 | vertex_program_ref LocalizedVS
|
---|
44 | {
|
---|
45 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
46 | param_named_auto world world_matrix
|
---|
47 | param_named_auto worldI inverse_world_matrix
|
---|
48 |
|
---|
49 | }
|
---|
50 | fragment_program_ref MetallicReflector
|
---|
51 | {
|
---|
52 | param_named_auto cameraPos camera_position
|
---|
53 | param_named F0 float3 1.0 0.8 0.7
|
---|
54 | param_named phongColor float3 0.5 0.0 0.0
|
---|
55 | param_named_auto lightPosition light_position 0
|
---|
56 | param_named lastCenter float3 0 0 0
|
---|
57 | param_named reflectivity float 0.16
|
---|
58 | //param_named reflectivity float 1
|
---|
59 | }
|
---|
60 |
|
---|
61 | //Cube map for reflections and refractions
|
---|
62 | texture_unit
|
---|
63 | {
|
---|
64 | cubic_texture cubemap.jpg combinedUVW
|
---|
65 | tex_address_mode clamp
|
---|
66 | colour_op replace
|
---|
67 | }
|
---|
68 |
|
---|
69 | //Cube map of distances
|
---|
70 | texture_unit
|
---|
71 | {
|
---|
72 | cubic_texture cubemap.jpg combinedUVW
|
---|
73 | tex_address_mode clamp
|
---|
74 | colour_op replace
|
---|
75 | }
|
---|
76 | }
|
---|
77 | }
|
---|
78 | }
|
---|
79 | material windscreen1
|
---|
80 | {
|
---|
81 | receive_shadows off
|
---|
82 | technique
|
---|
83 | {
|
---|
84 | pass
|
---|
85 | {
|
---|
86 | IllumTechniques
|
---|
87 | {
|
---|
88 | RenderTechnique ColorCubeMap
|
---|
89 | {
|
---|
90 | update_interval 1
|
---|
91 | distance_calc false
|
---|
92 | face_angle_calc false
|
---|
93 | update_all_face false
|
---|
94 | }
|
---|
95 | RenderTechnique DistanceCubeMap
|
---|
96 | {
|
---|
97 | update_interval 1
|
---|
98 | distance_calc false
|
---|
99 | face_angle_calc false
|
---|
100 | update_all_face false
|
---|
101 | }
|
---|
102 | //RenderTechnique CausticCaster
|
---|
103 | //{
|
---|
104 | // update_all_face false
|
---|
105 | // photonmap_resolution 128
|
---|
106 | //}
|
---|
107 |
|
---|
108 |
|
---|
109 | }
|
---|
110 | vertex_program_ref LocalizedVS
|
---|
111 | {
|
---|
112 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
113 | param_named_auto world world_matrix
|
---|
114 | param_named_auto worldI inverse_world_matrix
|
---|
115 |
|
---|
116 | }
|
---|
117 | fragment_program_ref MetallicReflector
|
---|
118 | {
|
---|
119 | param_named_auto cameraPos camera_position
|
---|
120 | param_named F0 float3 1.0 1.0 1.0
|
---|
121 | param_named phongColor float3 0.02 0.01 0.03
|
---|
122 | param_named_auto lightPosition light_position 0
|
---|
123 | param_named lastCenter float3 0 0 0
|
---|
124 | param_named reflectivity float 0.15
|
---|
125 | }
|
---|
126 |
|
---|
127 | //Cube map for reflections and refractions
|
---|
128 | texture_unit
|
---|
129 | {
|
---|
130 | cubic_texture cubemap.jpg combinedUVW
|
---|
131 | tex_address_mode clamp
|
---|
132 | colour_op replace
|
---|
133 | }
|
---|
134 |
|
---|
135 | //Cube map of distances
|
---|
136 | texture_unit
|
---|
137 | {
|
---|
138 | cubic_texture cubemap.jpg combinedUVW
|
---|
139 | tex_address_mode clamp
|
---|
140 | colour_op replace
|
---|
141 | }
|
---|
142 | }
|
---|
143 | }
|
---|
144 | }
|
---|
145 |
|
---|
146 | vertex_program DiffuseVS hlsl
|
---|
147 | {
|
---|
148 | source DiffuseBump.hlsl
|
---|
149 | entry_point DiffuseVS
|
---|
150 | target vs_2_0
|
---|
151 | }
|
---|
152 |
|
---|
153 | fragment_program DiffusePS hlsl
|
---|
154 | {
|
---|
155 | source DiffuseBump.hlsl
|
---|
156 | entry_point DiffusePS
|
---|
157 | target ps_3_0
|
---|
158 | }
|
---|
159 |
|
---|
160 | material canvas1
|
---|
161 | {
|
---|
162 | receive_shadows off
|
---|
163 | technique
|
---|
164 | {
|
---|
165 | pass
|
---|
166 | {
|
---|
167 |
|
---|
168 | IllumTechniques
|
---|
169 | {
|
---|
170 | RenderTechnique ReducedColorCubeMap
|
---|
171 | {
|
---|
172 | resolution 256
|
---|
173 | reduced_resolution 8
|
---|
174 |
|
---|
175 | update_interval 1
|
---|
176 | texture_unit_id 0
|
---|
177 | distance_calc true 2.0
|
---|
178 | face_angle_calc true 2.0
|
---|
179 | update_all_face false
|
---|
180 | }
|
---|
181 | RenderTechnique DistanceCubeMap
|
---|
182 | {
|
---|
183 | update_interval 3
|
---|
184 | texture_unit_id 1
|
---|
185 | distance_calc false
|
---|
186 | face_angle_calc false
|
---|
187 | update_all_face false
|
---|
188 | }
|
---|
189 |
|
---|
190 | }
|
---|
191 | vertex_program_ref DiffuseVS
|
---|
192 | {
|
---|
193 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
194 | param_named_auto world world_matrix
|
---|
195 | param_named_auto world_I inverse_world_matrix
|
---|
196 | }
|
---|
197 |
|
---|
198 | fragment_program_ref DiffusePS
|
---|
199 | {
|
---|
200 | param_named_auto cameraPos camera_position
|
---|
201 | param_named REDUCED_CUBEMAP_SIZE int 8
|
---|
202 | param_named lastCenter float3 0 0 0
|
---|
203 | param_named_auto lightPosition light_position 0
|
---|
204 | }
|
---|
205 |
|
---|
206 |
|
---|
207 |
|
---|
208 |
|
---|
209 | //Cube map for reflections and refractions
|
---|
210 | texture_unit
|
---|
211 | {
|
---|
212 | cubic_texture
|
---|
213 | tex_address_mode clamp
|
---|
214 | colour_op replace
|
---|
215 | }
|
---|
216 |
|
---|
217 | //Cube map of distances
|
---|
218 | texture_unit
|
---|
219 | {
|
---|
220 | cubic_texture
|
---|
221 | tex_address_mode clamp
|
---|
222 | colour_op replace
|
---|
223 | }
|
---|
224 |
|
---|
225 | texture_unit
|
---|
226 | {
|
---|
227 | texture canvas.tga
|
---|
228 | }
|
---|
229 |
|
---|
230 | texture_unit
|
---|
231 | {
|
---|
232 | texture canvasnormal.dds
|
---|
233 | }
|
---|
234 |
|
---|
235 |
|
---|
236 | }
|
---|
237 | }
|
---|
238 | }
|
---|
239 |
|
---|
240 |
|
---|
241 | material lambert3
|
---|
242 | {
|
---|
243 | receive_shadows off
|
---|
244 | technique
|
---|
245 | {
|
---|
246 | pass
|
---|
247 | {
|
---|
248 | //IllumTechniques
|
---|
249 | //{
|
---|
250 | // RenderTechnique ColorCubeMap
|
---|
251 | // {
|
---|
252 | // update_interval 1
|
---|
253 | // distance_calc false
|
---|
254 | // face_angle_calc false
|
---|
255 | // update_all_face false
|
---|
256 | // }
|
---|
257 | //
|
---|
258 | //}
|
---|
259 |
|
---|
260 | //Cube map for reflections and refractions
|
---|
261 | //texture_unit
|
---|
262 | //{
|
---|
263 | // colour_op modulate
|
---|
264 | //}
|
---|
265 |
|
---|
266 | ambient 0 0 0 1
|
---|
267 | diffuse 0 0 0 1
|
---|
268 | specular 0 0 0 1
|
---|
269 | }
|
---|
270 | }
|
---|
271 | }
|
---|
272 | material syigetelogumi
|
---|
273 | {
|
---|
274 | receive_shadows off
|
---|
275 | technique
|
---|
276 | {
|
---|
277 | pass
|
---|
278 | {
|
---|
279 | ambient 0 0 0 1
|
---|
280 | diffuse 0 0 0 1
|
---|
281 | specular 0.5 0.5 0.5 20
|
---|
282 | emissive 0 0 0
|
---|
283 | }
|
---|
284 | }
|
---|
285 | }
|
---|
286 |
|
---|
287 | fragment_program CarMirrorPS hlsl
|
---|
288 | {
|
---|
289 | source CarReflections.hlsl
|
---|
290 | entry_point MirrorPS
|
---|
291 | target ps_3_0
|
---|
292 | }
|
---|
293 |
|
---|
294 | material mirror
|
---|
295 | {
|
---|
296 | receive_shadows off
|
---|
297 | technique
|
---|
298 | {
|
---|
299 | pass
|
---|
300 | {
|
---|
301 | IllumTechniques
|
---|
302 | {
|
---|
303 | RenderTechnique ColorCubeMap
|
---|
304 | {
|
---|
305 | update_interval 1
|
---|
306 | distance_calc false
|
---|
307 | face_angle_calc false
|
---|
308 | update_all_face false
|
---|
309 | }
|
---|
310 | RenderTechnique DistanceCubeMap
|
---|
311 | {
|
---|
312 | update_interval 1
|
---|
313 | distance_calc false
|
---|
314 | face_angle_calc false
|
---|
315 | update_all_face false
|
---|
316 | }
|
---|
317 |
|
---|
318 |
|
---|
319 | }
|
---|
320 | vertex_program_ref LocalizedVS
|
---|
321 | {
|
---|
322 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
323 | param_named_auto world world_matrix
|
---|
324 | param_named_auto worldI inverse_world_matrix
|
---|
325 |
|
---|
326 | }
|
---|
327 | fragment_program_ref CarMirrorPS
|
---|
328 | {
|
---|
329 | param_named_auto cameraPos camera_position
|
---|
330 | param_named lastCenter float3 0 0 0
|
---|
331 | }
|
---|
332 |
|
---|
333 | //Cube map for reflections and refractions
|
---|
334 | texture_unit
|
---|
335 | {
|
---|
336 | cubic_texture
|
---|
337 | tex_address_mode clamp
|
---|
338 | colour_op replace
|
---|
339 | }
|
---|
340 |
|
---|
341 | //Cube map of distances
|
---|
342 | texture_unit
|
---|
343 | {
|
---|
344 | cubic_texture
|
---|
345 | tex_address_mode clamp
|
---|
346 | colour_op replace
|
---|
347 | }
|
---|
348 | }
|
---|
349 | }
|
---|
350 | }
|
---|
351 |
|
---|
352 | fragment_program LampGlassPS hlsl
|
---|
353 | {
|
---|
354 | source CarReflections.hlsl
|
---|
355 | entry_point LampGlassPS
|
---|
356 | target ps_3_0
|
---|
357 | }
|
---|
358 |
|
---|
359 | material elsolampabura
|
---|
360 | {
|
---|
361 |
|
---|
362 | //transparency_casts_shadows on
|
---|
363 |
|
---|
364 | technique
|
---|
365 | {
|
---|
366 | pass
|
---|
367 | {
|
---|
368 | IllumTechniques
|
---|
369 | {
|
---|
370 | RenderTechnique ColorCubeMap
|
---|
371 | {
|
---|
372 | update_interval 1
|
---|
373 | distance_calc false
|
---|
374 | face_angle_calc false
|
---|
375 | update_all_face false
|
---|
376 | }
|
---|
377 | RenderTechnique DistanceCubeMap
|
---|
378 | {
|
---|
379 | update_interval 1
|
---|
380 | distance_calc false
|
---|
381 | face_angle_calc false
|
---|
382 | update_all_face false
|
---|
383 | }
|
---|
384 |
|
---|
385 |
|
---|
386 | }
|
---|
387 | vertex_program_ref LocalizedVS
|
---|
388 | {
|
---|
389 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
390 | param_named_auto world world_matrix
|
---|
391 | param_named_auto worldI inverse_world_matrix
|
---|
392 |
|
---|
393 | }
|
---|
394 | fragment_program_ref LampGlassPS
|
---|
395 | {
|
---|
396 | param_named_auto cameraPos camera_position
|
---|
397 | param_named lastCenter float3 0 0 0
|
---|
398 | param_named glasColor float4 0.9 0.85 0.95 0.65
|
---|
399 | }
|
---|
400 |
|
---|
401 | //Cube map for reflections and refractions
|
---|
402 | texture_unit
|
---|
403 | {
|
---|
404 | cubic_texture
|
---|
405 | tex_address_mode clamp
|
---|
406 | colour_op replace
|
---|
407 | }
|
---|
408 |
|
---|
409 | Cube map of distances
|
---|
410 | texture_unit
|
---|
411 | {
|
---|
412 | cubic_texture
|
---|
413 | tex_address_mode clamp
|
---|
414 | colour_op replace
|
---|
415 | }
|
---|
416 |
|
---|
417 | scene_blend alpha_blend
|
---|
418 | depth_write off
|
---|
419 |
|
---|
420 | ambient 1 1 1 0.5
|
---|
421 | diffuse 1 1 1 0.5
|
---|
422 | specular 0 0 0 0
|
---|
423 | emissive 0 0 0
|
---|
424 |
|
---|
425 |
|
---|
426 | }
|
---|
427 | }
|
---|
428 | }
|
---|
429 | material elsolampabelul
|
---|
430 | {
|
---|
431 | receive_shadows off
|
---|
432 |
|
---|
433 | technique
|
---|
434 | {
|
---|
435 | pass
|
---|
436 | {
|
---|
437 | ambient 0.786016 0.968 0.878464 1
|
---|
438 | diffuse 0.786016 0.968 0.878464 1
|
---|
439 | specular 0 0 0 0
|
---|
440 | emissive 0 0 0
|
---|
441 | }
|
---|
442 | }
|
---|
443 | }
|
---|
444 |
|
---|
445 | material hatsolampa
|
---|
446 | {
|
---|
447 | receive_shadows off
|
---|
448 | transparency_casts_shadows on
|
---|
449 | technique
|
---|
450 | {
|
---|
451 | pass
|
---|
452 | {
|
---|
453 | IllumTechniques
|
---|
454 | {
|
---|
455 | RenderTechnique ColorCubeMap
|
---|
456 | {
|
---|
457 | update_interval 1
|
---|
458 | distance_calc false
|
---|
459 | face_angle_calc false
|
---|
460 | update_all_face false
|
---|
461 | }
|
---|
462 | RenderTechnique DistanceCubeMap
|
---|
463 | {
|
---|
464 | update_interval 1
|
---|
465 | distance_calc false
|
---|
466 | face_angle_calc false
|
---|
467 | update_all_face false
|
---|
468 | }
|
---|
469 |
|
---|
470 |
|
---|
471 | }
|
---|
472 | vertex_program_ref LocalizedVS
|
---|
473 | {
|
---|
474 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
475 | param_named_auto world world_matrix
|
---|
476 | param_named_auto worldI inverse_world_matrix
|
---|
477 |
|
---|
478 | }
|
---|
479 | fragment_program_ref LampGlassPS
|
---|
480 | {
|
---|
481 | param_named_auto cameraPos camera_position
|
---|
482 | param_named lastCenter float3 0 0 0
|
---|
483 | param_named glasColor float4 0.9 0.1 0.0 0.7
|
---|
484 | }
|
---|
485 |
|
---|
486 | //Cube map for reflections and refractions
|
---|
487 | texture_unit
|
---|
488 | {
|
---|
489 | cubic_texture
|
---|
490 | tex_address_mode clamp
|
---|
491 | colour_op replace
|
---|
492 | }
|
---|
493 |
|
---|
494 | //Cube map of distances
|
---|
495 | texture_unit
|
---|
496 | {
|
---|
497 | cubic_texture
|
---|
498 | tex_address_mode clamp
|
---|
499 | colour_op replace
|
---|
500 | }
|
---|
501 |
|
---|
502 | //scene_blend alpha_blend
|
---|
503 | //depth_write off
|
---|
504 | }
|
---|
505 | }
|
---|
506 | }
|
---|
507 | material hatso_lampa_belso
|
---|
508 | {
|
---|
509 | receive_shadows off
|
---|
510 |
|
---|
511 | technique
|
---|
512 | {
|
---|
513 | pass
|
---|
514 | {
|
---|
515 | ambient 0.1 0.1 0.1 1
|
---|
516 | diffuse 1 1 1 1
|
---|
517 | specular 0 0 0 0
|
---|
518 | emissive 0.2 0.2 0.2
|
---|
519 |
|
---|
520 | //texture_unit
|
---|
521 | //{
|
---|
522 | // texture lampahatul.jpg
|
---|
523 | //}
|
---|
524 | }
|
---|
525 | }
|
---|
526 | }
|
---|
527 |
|
---|
528 | material index
|
---|
529 | {
|
---|
530 | receive_shadows off
|
---|
531 |
|
---|
532 | technique
|
---|
533 | {
|
---|
534 | pass
|
---|
535 | {
|
---|
536 | IllumTechniques
|
---|
537 | {
|
---|
538 | RenderTechnique ColorCubeMap
|
---|
539 | {
|
---|
540 | update_interval 1
|
---|
541 | distance_calc false
|
---|
542 | face_angle_calc false
|
---|
543 | update_all_face false
|
---|
544 | }
|
---|
545 | RenderTechnique DistanceCubeMap
|
---|
546 | {
|
---|
547 | update_interval 1
|
---|
548 | distance_calc false
|
---|
549 | face_angle_calc false
|
---|
550 | update_all_face false
|
---|
551 | }
|
---|
552 |
|
---|
553 |
|
---|
554 | }
|
---|
555 | vertex_program_ref LocalizedVS
|
---|
556 | {
|
---|
557 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
558 | param_named_auto world world_matrix
|
---|
559 | param_named_auto worldI inverse_world_matrix
|
---|
560 |
|
---|
561 | }
|
---|
562 | fragment_program_ref MetallicReflector
|
---|
563 | {
|
---|
564 | param_named_auto cameraPos camera_position
|
---|
565 | param_named F0 float3 2.0 1.0 0.2
|
---|
566 | param_named_auto lightPosition light_position 0
|
---|
567 | param_named lastCenter float3 0 0 0
|
---|
568 | param_named reflectivity float 0.6
|
---|
569 | }
|
---|
570 |
|
---|
571 | //Cube map for reflections and refractions
|
---|
572 | texture_unit
|
---|
573 | {
|
---|
574 | cubic_texture cubemap.jpg combinedUVW
|
---|
575 | tex_address_mode clamp
|
---|
576 | colour_op replace
|
---|
577 | }
|
---|
578 |
|
---|
579 | //Cube map of distances
|
---|
580 | texture_unit
|
---|
581 | {
|
---|
582 | cubic_texture cubemap.jpg combinedUVW
|
---|
583 | tex_address_mode clamp
|
---|
584 | colour_op replace
|
---|
585 | }
|
---|
586 | }
|
---|
587 | }
|
---|
588 | }
|
---|
589 |
|
---|