1 |
|
---|
2 |
|
---|
3 | material GameTools/HPS
|
---|
4 | {
|
---|
5 |
|
---|
6 | technique
|
---|
7 | {
|
---|
8 | pass
|
---|
9 | {
|
---|
10 | IllumTechniques
|
---|
11 | {
|
---|
12 | RenderTechnique HPS
|
---|
13 | {
|
---|
14 | particle_script GameTools/Little
|
---|
15 | }
|
---|
16 | }
|
---|
17 |
|
---|
18 | scene_blend add
|
---|
19 |
|
---|
20 | lighting off
|
---|
21 | depth_check off
|
---|
22 |
|
---|
23 | texture_unit
|
---|
24 | {
|
---|
25 | texture
|
---|
26 | }
|
---|
27 |
|
---|
28 |
|
---|
29 | }
|
---|
30 | }
|
---|
31 | }
|
---|
32 |
|
---|
33 |
|
---|
34 | material Flare
|
---|
35 | {
|
---|
36 | technique
|
---|
37 | {
|
---|
38 | pass
|
---|
39 | {
|
---|
40 | //cull_hardware none
|
---|
41 | lighting off
|
---|
42 | //scene_blend add
|
---|
43 | //scene_blend_op add
|
---|
44 | //scene_blend_op_alpha add
|
---|
45 | //scene_blend_alpha add
|
---|
46 | depth_write off
|
---|
47 |
|
---|
48 | ambient 1 0 0 1
|
---|
49 | diffuse 1 0 0 1
|
---|
50 | //texture_unit
|
---|
51 | //{
|
---|
52 | // texture flare.png
|
---|
53 | //}
|
---|
54 | }
|
---|
55 | }
|
---|
56 | }
|
---|
57 |
|
---|
58 | material Examples/MorningSkyBox
|
---|
59 | {
|
---|
60 | technique
|
---|
61 | {
|
---|
62 | pass
|
---|
63 | {
|
---|
64 | lighting off
|
---|
65 | depth_write off
|
---|
66 |
|
---|
67 | texture_unit
|
---|
68 | {
|
---|
69 | cubic_texture morning.jpg separateUV
|
---|
70 | tex_address_mode clamp
|
---|
71 | }
|
---|
72 | }
|
---|
73 | }
|
---|
74 | }
|
---|
75 |
|
---|
76 | material GameTools/Rockwall
|
---|
77 | {
|
---|
78 | technique
|
---|
79 | {
|
---|
80 | pass
|
---|
81 | {
|
---|
82 | lighting off
|
---|
83 | texture_unit
|
---|
84 | {
|
---|
85 | texture rockwall.tga
|
---|
86 | env_map cubic_normal
|
---|
87 | //vertex_texture true
|
---|
88 | }
|
---|
89 | }
|
---|
90 | }
|
---|
91 | }
|
---|
92 |
|
---|
93 | material GameTools/PostProcBlack
|
---|
94 | {
|
---|
95 | technique
|
---|
96 | {
|
---|
97 | pass
|
---|
98 | {
|
---|
99 | vertex_program_ref GameTools/PostProc1_VS
|
---|
100 | {
|
---|
101 | }
|
---|
102 | fragment_program_ref GameTools/PostProc_Black
|
---|
103 | {
|
---|
104 |
|
---|
105 | }
|
---|
106 | }
|
---|
107 | }
|
---|
108 | }
|
---|
109 | material GameTools/PostProc1
|
---|
110 | {
|
---|
111 | technique
|
---|
112 | {
|
---|
113 | pass
|
---|
114 | {
|
---|
115 | vertex_program_ref GameTools/PostProc1_VS
|
---|
116 | {
|
---|
117 | }
|
---|
118 | fragment_program_ref GameTools/PostProc1_PS
|
---|
119 | {
|
---|
120 |
|
---|
121 | }
|
---|
122 | texture_unit
|
---|
123 | {
|
---|
124 | // filtering none
|
---|
125 | texture rockwall.tga
|
---|
126 | }
|
---|
127 | }
|
---|
128 | }
|
---|
129 | }
|
---|
130 |
|
---|
131 | material GameTools/GlowCut
|
---|
132 | {
|
---|
133 | technique
|
---|
134 | {
|
---|
135 | pass
|
---|
136 | {
|
---|
137 | vertex_program_ref GameTools/PostProc1_VS
|
---|
138 | {
|
---|
139 | }
|
---|
140 | fragment_program_ref GameTools/GlowCut_PS
|
---|
141 | {
|
---|
142 | param_named_auto width viewport_width
|
---|
143 | param_named_auto height viewport_height
|
---|
144 |
|
---|
145 | }
|
---|
146 | texture_unit
|
---|
147 | {
|
---|
148 | //filtering none
|
---|
149 | texture rockwall.tga
|
---|
150 | }
|
---|
151 | texture_unit
|
---|
152 | {
|
---|
153 | //filtering none
|
---|
154 | texture rockwall.tga
|
---|
155 | }
|
---|
156 | }
|
---|
157 | }
|
---|
158 | }
|
---|
159 |
|
---|
160 | material GameTools/Luminance
|
---|
161 | {
|
---|
162 | technique
|
---|
163 | {
|
---|
164 | pass
|
---|
165 | {
|
---|
166 | vertex_program_ref GameTools/PostProc1_VS
|
---|
167 | {
|
---|
168 | }
|
---|
169 | fragment_program_ref GameTools/Luminance_PS
|
---|
170 | {
|
---|
171 | param_named_auto width viewport_width
|
---|
172 | param_named_auto height viewport_height
|
---|
173 |
|
---|
174 | }
|
---|
175 | texture_unit
|
---|
176 | {
|
---|
177 | //filtering none
|
---|
178 | texture rockwall.tga
|
---|
179 | }
|
---|
180 |
|
---|
181 | }
|
---|
182 | }
|
---|
183 | }
|
---|
184 |
|
---|
185 |
|
---|
186 |
|
---|
187 | material GameTools/GlowBlurH
|
---|
188 | {
|
---|
189 | technique
|
---|
190 | {
|
---|
191 | pass
|
---|
192 | {
|
---|
193 | vertex_program_ref GameTools/PostProc1_VS
|
---|
194 | {
|
---|
195 | }
|
---|
196 | fragment_program_ref GameTools/GlowBlurH_PS
|
---|
197 | {
|
---|
198 | param_named_auto width viewport_width
|
---|
199 | param_named_auto height viewport_height
|
---|
200 | param_named Stretch float 3.2
|
---|
201 | }
|
---|
202 | texture_unit
|
---|
203 | {
|
---|
204 | tex_address_mode mirror
|
---|
205 | texture rockwall.tga
|
---|
206 | }
|
---|
207 |
|
---|
208 | }
|
---|
209 | }
|
---|
210 | }
|
---|
211 |
|
---|
212 | material GameTools/GlowBlurV
|
---|
213 | {
|
---|
214 | technique
|
---|
215 | {
|
---|
216 | pass
|
---|
217 | {
|
---|
218 | vertex_program_ref GameTools/PostProc1_VS
|
---|
219 | {
|
---|
220 | }
|
---|
221 | fragment_program_ref GameTools/GlowBlurV_PS
|
---|
222 | {
|
---|
223 | param_named_auto width viewport_width
|
---|
224 | param_named_auto height viewport_height
|
---|
225 | param_named Stretch float 3.2
|
---|
226 | }
|
---|
227 | texture_unit
|
---|
228 | {
|
---|
229 | tex_address_mode mirror
|
---|
230 | texture rockwall.tga
|
---|
231 | }
|
---|
232 | }
|
---|
233 | }
|
---|
234 | }
|
---|
235 |
|
---|
236 | material GameTools/TextureCopy
|
---|
237 | {
|
---|
238 | technique
|
---|
239 | {
|
---|
240 | pass
|
---|
241 | {
|
---|
242 | vertex_program_ref GameTools/PostProc1_VS
|
---|
243 | {
|
---|
244 | }
|
---|
245 | fragment_program_ref GameTools/TextureCopy_PS
|
---|
246 | {
|
---|
247 | param_named_auto width viewport_width
|
---|
248 | param_named_auto height viewport_height
|
---|
249 |
|
---|
250 | }
|
---|
251 | texture_unit
|
---|
252 | {
|
---|
253 | // filtering none
|
---|
254 | texture rockwall.tga
|
---|
255 | }
|
---|
256 | }
|
---|
257 | }
|
---|
258 | }
|
---|
259 |
|
---|
260 | material GameTools/GlowAdd
|
---|
261 | {
|
---|
262 | technique
|
---|
263 | {
|
---|
264 | pass
|
---|
265 | {
|
---|
266 | vertex_program_ref GameTools/PostProc1_VS
|
---|
267 | {
|
---|
268 | }
|
---|
269 | fragment_program_ref GameTools/GlowAdd_PS
|
---|
270 | {
|
---|
271 | param_named_auto width viewport_width
|
---|
272 | param_named_auto height viewport_height
|
---|
273 |
|
---|
274 | }
|
---|
275 | texture_unit
|
---|
276 | {
|
---|
277 | // filtering none
|
---|
278 | texture rockwall.tga
|
---|
279 | }
|
---|
280 | texture_unit
|
---|
281 | {
|
---|
282 | // filtering none
|
---|
283 | texture rockwall.tga
|
---|
284 | }
|
---|
285 | }
|
---|
286 | }
|
---|
287 | }
|
---|
288 |
|
---|
289 | material GameTools/ToneMap
|
---|
290 | {
|
---|
291 | technique
|
---|
292 | {
|
---|
293 | pass
|
---|
294 | {
|
---|
295 | vertex_program_ref GameTools/PostProc1_VS
|
---|
296 | {
|
---|
297 | }
|
---|
298 | fragment_program_ref GameTools/ToneMap_PS
|
---|
299 | {
|
---|
300 | param_named_auto width viewport_width
|
---|
301 | param_named_auto height viewport_height
|
---|
302 | param_named Gain float 0.5
|
---|
303 | }
|
---|
304 | texture_unit
|
---|
305 | {
|
---|
306 | // filtering none
|
---|
307 | texture rockwall.tga
|
---|
308 | }
|
---|
309 | texture_unit
|
---|
310 | {
|
---|
311 | // filtering none
|
---|
312 | texture rockwall.tga
|
---|
313 | }
|
---|
314 | texture_unit
|
---|
315 | {
|
---|
316 | // filtering none
|
---|
317 | texture rockwall.tga
|
---|
318 | }
|
---|
319 | }
|
---|
320 | }
|
---|
321 | }
|
---|
322 |
|
---|
323 | material GameTools/UVShader
|
---|
324 | {
|
---|
325 | technique
|
---|
326 | {
|
---|
327 | pass
|
---|
328 | {
|
---|
329 | vertex_program_ref GameTools/UV_VS
|
---|
330 | {
|
---|
331 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
332 | }
|
---|
333 | fragment_program_ref GameTools/UV_PS
|
---|
334 | {
|
---|
335 | param_named_auto ID custom 0
|
---|
336 | }
|
---|
337 |
|
---|
338 |
|
---|
339 | }
|
---|
340 | }
|
---|
341 | }
|
---|
342 |
|
---|
343 |
|
---|
344 | material GameTools/Caustic/Default
|
---|
345 | {
|
---|
346 |
|
---|
347 | technique
|
---|
348 | {
|
---|
349 | pass
|
---|
350 | {
|
---|
351 | lighting off
|
---|
352 |
|
---|
353 | vertex_program_ref GameTools/Caustic/DefaultVS
|
---|
354 | {
|
---|
355 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
356 | param_named_auto world world_matrix
|
---|
357 | }
|
---|
358 | fragment_program_ref GameTools/Caustic/DefaultPS
|
---|
359 | {
|
---|
360 | param_named cubeMapCameraPosition float3 0 0 0
|
---|
361 | }
|
---|
362 |
|
---|
363 | texture_unit
|
---|
364 | {
|
---|
365 | filtering none
|
---|
366 | }
|
---|
367 |
|
---|
368 | texture_unit
|
---|
369 | {
|
---|
370 | //filtering linear linear linear
|
---|
371 | }
|
---|
372 | }
|
---|
373 | }
|
---|
374 | }
|
---|
375 |
|
---|
376 | material GameTools/SoftShadowReciever/Default
|
---|
377 | {
|
---|
378 |
|
---|
379 | technique
|
---|
380 | {
|
---|
381 | pass
|
---|
382 | {
|
---|
383 | lighting off
|
---|
384 |
|
---|
385 | vertex_program_ref GameTools/SoftShadow/VertexPrograms/DefaultVS
|
---|
386 | {
|
---|
387 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
388 | param_named_auto world world_matrix
|
---|
389 | }
|
---|
390 | fragment_program_ref GameTools/SoftShadow/FragmentPrograms/DefaultPS
|
---|
391 | {
|
---|
392 | param_named cubeMapCameraPosition float3 0 0 0
|
---|
393 | }
|
---|
394 |
|
---|
395 | texture_unit
|
---|
396 | {
|
---|
397 | texture rockwall.tga
|
---|
398 | //texture cubbe.jpg
|
---|
399 |
|
---|
400 | }
|
---|
401 |
|
---|
402 | texture_unit
|
---|
403 | {
|
---|
404 | //filtering linear linear linear
|
---|
405 | cubic_texture cubemap.jpg combinedUVW
|
---|
406 | env_map cubic_reflection
|
---|
407 | }
|
---|
408 | }
|
---|
409 | }
|
---|
410 | }
|
---|
411 |
|
---|
412 | material GameTools/SoftShadowReciever/Default2
|
---|
413 | {
|
---|
414 |
|
---|
415 | technique
|
---|
416 | {
|
---|
417 | pass
|
---|
418 | {
|
---|
419 | lighting off
|
---|
420 |
|
---|
421 | vertex_program_ref GameTools/SoftShadow/VertexPrograms/DefaultVS
|
---|
422 | {
|
---|
423 | param_named_auto world_IT inverse_transpose_world_matrix
|
---|
424 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
425 | param_named_auto world world_matrix
|
---|
426 | }
|
---|
427 | fragment_program_ref GameTools/SoftShadow/FragmentPrograms/Default2PS
|
---|
428 | {
|
---|
429 | param_named cubeMapCameraPosition float3 0 0 0
|
---|
430 | param_named_auto cameraPos camera_position
|
---|
431 | param_named_auto lightPosition light_position 0
|
---|
432 | }
|
---|
433 |
|
---|
434 | texture_unit
|
---|
435 | {
|
---|
436 | //filtering linear linear linear
|
---|
437 | cubic_texture cubemap.jpg combinedUVW
|
---|
438 | env_map cubic_reflection
|
---|
439 | }
|
---|
440 | }
|
---|
441 | }
|
---|
442 | }
|
---|
443 |
|
---|
444 | material GameTools/CausticSoftShadowReciever
|
---|
445 | {
|
---|
446 |
|
---|
447 | technique
|
---|
448 | {
|
---|
449 | pass
|
---|
450 | {
|
---|
451 | lighting off
|
---|
452 |
|
---|
453 | vertex_program_ref GameTools/CausticSoftShadowVS
|
---|
454 | {
|
---|
455 | param_named_auto world_IT worldviewproj_matrix
|
---|
456 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
457 | param_named_auto world world_matrix
|
---|
458 | }
|
---|
459 | fragment_program_ref GameTools/CausticSoftShadowPS
|
---|
460 | {
|
---|
461 | //param_named_auto world_IT inverse_worldview_matrix
|
---|
462 | param_named cubeMapCameraPosition float3 0 0 0
|
---|
463 | }
|
---|
464 |
|
---|
465 | texture_unit
|
---|
466 | {
|
---|
467 | //texture rockwall.tga
|
---|
468 | texture cubbe.jpg
|
---|
469 | }
|
---|
470 |
|
---|
471 | //texture_unit //caustic cubemap
|
---|
472 | //{
|
---|
473 | // //filtering linear linear linear
|
---|
474 | // cubic_texture cubemap.jpg combinedUVW
|
---|
475 | //}
|
---|
476 |
|
---|
477 | //texture_unit //softshadow cubemap
|
---|
478 | //{
|
---|
479 | // //filtering linear linear linear
|
---|
480 | // cubic_texture cubemap.jpg combinedUVW
|
---|
481 | //}
|
---|
482 |
|
---|
483 | texture_unit/bump
|
---|
484 | {
|
---|
485 | texture falnormal.dds
|
---|
486 | }
|
---|
487 | }
|
---|
488 | }
|
---|
489 | }
|
---|
490 |
|
---|
491 |
|
---|
492 | material GameTools/CubeMap/Default
|
---|
493 | {
|
---|
494 |
|
---|
495 | technique
|
---|
496 | {
|
---|
497 | pass
|
---|
498 | {
|
---|
499 | lighting off
|
---|
500 |
|
---|
501 |
|
---|
502 |
|
---|
503 | vertex_program_ref GameTools/CubeMap/VertexPrograms/DefaultVS
|
---|
504 | {
|
---|
505 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
506 | param_named_auto world world_matrix
|
---|
507 | }
|
---|
508 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/DefaultPS
|
---|
509 | {
|
---|
510 | param_named_auto cameraPos camera_position
|
---|
511 | }
|
---|
512 |
|
---|
513 | //Cube map for reflections and refractions
|
---|
514 | texture_unit
|
---|
515 | {
|
---|
516 | cubic_texture cubemap.jpg combinedUVW
|
---|
517 | //env_map cubic_reflection
|
---|
518 | }
|
---|
519 |
|
---|
520 |
|
---|
521 | }
|
---|
522 | }
|
---|
523 | }
|
---|
524 |
|
---|
525 |
|
---|
526 |
|
---|
527 | material GameTools/CubeMap/Reduce
|
---|
528 | {
|
---|
529 |
|
---|
530 | technique
|
---|
531 | {
|
---|
532 | pass
|
---|
533 | {
|
---|
534 | //depth_check off
|
---|
535 | lighting off
|
---|
536 |
|
---|
537 | vertex_program_ref GameTools/CubeMap/VertexPrograms/ReduceVS
|
---|
538 | {
|
---|
539 | // param_named_auto worldViewProj worldviewproj_matrix
|
---|
540 | // param_named_auto world world_matrix
|
---|
541 | }
|
---|
542 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/ReducePS
|
---|
543 | {
|
---|
544 | //param_named_auto cameraPos camera_position
|
---|
545 | param_named nFace int 0
|
---|
546 | param_named CUBEMAP_SIZE int 256
|
---|
547 | //param_named RATE int 2
|
---|
548 |
|
---|
549 | }
|
---|
550 |
|
---|
551 | //Cube map for reflections and refractions
|
---|
552 | texture_unit
|
---|
553 | {
|
---|
554 | filtering point point point
|
---|
555 | cubic_texture cubemap.jpg combinedUVW
|
---|
556 | tex_address_mode clamp
|
---|
557 | // env_map cubic_reflection
|
---|
558 | colour_op modulate
|
---|
559 | }
|
---|
560 |
|
---|
561 |
|
---|
562 | }
|
---|
563 | }
|
---|
564 | }
|
---|
565 |
|
---|
566 |
|
---|
567 |
|
---|
568 | material GameTools/CubeMap/Localized
|
---|
569 | {
|
---|
570 |
|
---|
571 | technique
|
---|
572 | {
|
---|
573 |
|
---|
574 | pass
|
---|
575 | {
|
---|
576 | IllumTechniques
|
---|
577 | {
|
---|
578 | RenderTechnique ColorCubeMap
|
---|
579 | {
|
---|
580 | update_interval 0
|
---|
581 | distance_calc true 3.5
|
---|
582 | }
|
---|
583 | RenderTechnique DistanceCubeMap
|
---|
584 | {
|
---|
585 | update_interval 0
|
---|
586 | distance_calc true 3.5
|
---|
587 | }
|
---|
588 | RenderTechnique CausticCaster
|
---|
589 | {
|
---|
590 |
|
---|
591 | }
|
---|
592 |
|
---|
593 | }
|
---|
594 |
|
---|
595 |
|
---|
596 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
597 | {
|
---|
598 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
599 | param_named_auto world world_matrix
|
---|
600 | }
|
---|
601 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedPS
|
---|
602 | {
|
---|
603 | param_named_auto cameraPos camera_position
|
---|
604 | param_named_auto lightPosition light_position 0
|
---|
605 | }
|
---|
606 |
|
---|
607 | //Cube map for reflections and refractions
|
---|
608 | texture_unit
|
---|
609 | {
|
---|
610 | cubic_texture cubemap.jpg combinedUVW
|
---|
611 | tex_address_mode clamp
|
---|
612 | colour_op replace
|
---|
613 | }
|
---|
614 |
|
---|
615 | //Cube map of distances
|
---|
616 | texture_unit
|
---|
617 | {
|
---|
618 | cubic_texture cubemap.jpg combinedUVW
|
---|
619 | tex_address_mode clamp
|
---|
620 | colour_op replace
|
---|
621 | }
|
---|
622 |
|
---|
623 |
|
---|
624 | }
|
---|
625 | }
|
---|
626 | }
|
---|
627 |
|
---|
628 | material GameTools/CubeMap/LocalizedBump
|
---|
629 | {
|
---|
630 |
|
---|
631 | technique
|
---|
632 | {
|
---|
633 |
|
---|
634 | pass
|
---|
635 | {
|
---|
636 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedBumpVS
|
---|
637 | {
|
---|
638 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
639 | param_named_auto world world_matrix
|
---|
640 | }
|
---|
641 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedBumpPS
|
---|
642 | {
|
---|
643 | param_named_auto cameraPos camera_position
|
---|
644 | param_named_auto lightPosition light_position 0
|
---|
645 | }
|
---|
646 |
|
---|
647 | //Cube map for reflections and refractions
|
---|
648 | texture_unit
|
---|
649 | {
|
---|
650 | cubic_texture cubemap.jpg combinedUVW
|
---|
651 | tex_address_mode clamp
|
---|
652 | colour_op replace
|
---|
653 | }
|
---|
654 |
|
---|
655 | //Cube map of distances
|
---|
656 | texture_unit
|
---|
657 | {
|
---|
658 | cubic_texture cubemap.jpg combinedUVW
|
---|
659 | tex_address_mode clamp
|
---|
660 | colour_op replace
|
---|
661 | }
|
---|
662 |
|
---|
663 | //normal map
|
---|
664 | texture_unit
|
---|
665 | {
|
---|
666 | texture atheneNormalMapNew.dds
|
---|
667 | //texture atheneNormalMap.png
|
---|
668 | }
|
---|
669 | texture_unit
|
---|
670 | {
|
---|
671 | texture atheneDisplacementMap.bmp
|
---|
672 | }
|
---|
673 |
|
---|
674 |
|
---|
675 | }
|
---|
676 | }
|
---|
677 | }
|
---|
678 |
|
---|
679 | material GameTools/CubeMap/Diffuse
|
---|
680 | {
|
---|
681 | technique
|
---|
682 | {
|
---|
683 | pass
|
---|
684 | {
|
---|
685 |
|
---|
686 | IllumTechniques
|
---|
687 | {
|
---|
688 | RenderTechnique ReducedColorCubeMap
|
---|
689 | {
|
---|
690 | update_interval 3
|
---|
691 | distance_calc false
|
---|
692 | face_angle_calc false
|
---|
693 | update_all_face false
|
---|
694 | }
|
---|
695 | }
|
---|
696 |
|
---|
697 |
|
---|
698 | vertex_program_ref GameTools/DiffuseVS
|
---|
699 | {
|
---|
700 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
701 | param_named_auto world world_matrix
|
---|
702 |
|
---|
703 | }
|
---|
704 | fragment_program_ref GameTools/DiffusePS
|
---|
705 | {
|
---|
706 | param_named_auto cameraPos camera_position
|
---|
707 | param_named REDUCED_CUBEMAP_SIZE int 8
|
---|
708 | param_named lastCenter float3 0 0 0
|
---|
709 | }
|
---|
710 |
|
---|
711 | //Cube map for reflections and refractions
|
---|
712 | texture_unit
|
---|
713 | {
|
---|
714 | cubic_texture cubemap.jpg combinedUVW
|
---|
715 | tex_address_mode clamp
|
---|
716 | colour_op replace
|
---|
717 | }
|
---|
718 |
|
---|
719 | //Cube map of distances
|
---|
720 | texture_unit
|
---|
721 | {
|
---|
722 | cubic_texture cubemap.jpg combinedUVW
|
---|
723 | tex_address_mode clamp
|
---|
724 | colour_op replace
|
---|
725 | }
|
---|
726 | }
|
---|
727 | }
|
---|
728 | }
|
---|
729 |
|
---|
730 |
|
---|
731 |
|
---|
732 | material GameTools/CubeMap/LocalizedMetal
|
---|
733 | {
|
---|
734 |
|
---|
735 | technique
|
---|
736 | {
|
---|
737 | pass
|
---|
738 | {
|
---|
739 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
740 | {
|
---|
741 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
742 | param_named_auto world world_matrix
|
---|
743 |
|
---|
744 | }
|
---|
745 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
746 | {
|
---|
747 | param_named_auto cameraPos camera_position
|
---|
748 | param_named n float3 0.21 0.96 1.17
|
---|
749 | param_named k float3 4.16 2.57 2.32
|
---|
750 | }
|
---|
751 |
|
---|
752 | //Cube map for reflections and refractions
|
---|
753 | texture_unit
|
---|
754 | {
|
---|
755 | cubic_texture cubemap.jpg combinedUVW
|
---|
756 | tex_address_mode clamp
|
---|
757 | colour_op replace
|
---|
758 | }
|
---|
759 |
|
---|
760 | //Cube map of distances
|
---|
761 | texture_unit
|
---|
762 | {
|
---|
763 | cubic_texture cubemap.jpg combinedUVW
|
---|
764 | tex_address_mode clamp
|
---|
765 | colour_op replace
|
---|
766 | }
|
---|
767 |
|
---|
768 |
|
---|
769 | }
|
---|
770 | }
|
---|
771 | }
|
---|
772 |
|
---|
773 |
|
---|
774 | material GameTools/DistanceShader
|
---|
775 | {
|
---|
776 |
|
---|
777 | technique
|
---|
778 | {
|
---|
779 | pass
|
---|
780 | {
|
---|
781 | vertex_program_ref GameTools/DistanceVS
|
---|
782 | {
|
---|
783 | param_named_auto worldView worldview_matrix
|
---|
784 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
785 | }
|
---|
786 | fragment_program_ref GameTools/DistancePS
|
---|
787 | {
|
---|
788 |
|
---|
789 | }
|
---|
790 |
|
---|
791 | }
|
---|
792 | }
|
---|
793 | }
|
---|
794 |
|
---|
795 |
|
---|
796 | material GameTools/PhotonMapCaustic
|
---|
797 | {
|
---|
798 | technique
|
---|
799 | {
|
---|
800 |
|
---|
801 | pass
|
---|
802 | {
|
---|
803 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
804 | {
|
---|
805 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
806 | param_named_auto world world_matrix
|
---|
807 | param_named_auto worldIT inverse_transpose_world_matrix
|
---|
808 | }
|
---|
809 | fragment_program_ref GameTools/PhotonMapCausticPS
|
---|
810 | {
|
---|
811 | param_named_auto cameraPos camera_position
|
---|
812 | param_named lastCenter float3 0 0 0
|
---|
813 | }
|
---|
814 |
|
---|
815 | //Cube map for reflections and refractions
|
---|
816 | texture_unit
|
---|
817 | {
|
---|
818 | cubic_texture
|
---|
819 | filtering none
|
---|
820 | //tex_address_mode clamp
|
---|
821 | }
|
---|
822 |
|
---|
823 | }
|
---|
824 | }
|
---|
825 | }
|
---|
826 |
|
---|
827 |
|
---|
828 | material GameTools/PhotonMapSoftShadow
|
---|
829 | {
|
---|
830 | technique
|
---|
831 | {
|
---|
832 | pass
|
---|
833 | {
|
---|
834 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
835 | {
|
---|
836 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
837 | param_named_auto world world_matrix
|
---|
838 | }
|
---|
839 | fragment_program_ref GameTools/PhotonMapSoftShadowPS
|
---|
840 | {
|
---|
841 | param_named_auto cameraPos camera_position
|
---|
842 | param_named lastCenter float3 0 0 0
|
---|
843 | }
|
---|
844 |
|
---|
845 | //Cube map for reflections and refractions
|
---|
846 | texture_unit
|
---|
847 | {
|
---|
848 | cubic_texture cubemap.jpg combinedUVW
|
---|
849 | tex_address_mode clamp
|
---|
850 | colour_op replace
|
---|
851 | env_map cubic_reflection
|
---|
852 | }
|
---|
853 |
|
---|
854 | //Cube map of distances
|
---|
855 | texture_unit
|
---|
856 | {
|
---|
857 | cubic_texture cubemap.jpg combinedUVW
|
---|
858 | tex_address_mode clamp
|
---|
859 | colour_op replace
|
---|
860 | }
|
---|
861 | }
|
---|
862 | }
|
---|
863 | }
|
---|
864 |
|
---|
865 |
|
---|
866 |
|
---|
867 |
|
---|
868 | material GameTools/SceneCameraDepthShader
|
---|
869 | {
|
---|
870 |
|
---|
871 | technique
|
---|
872 | {
|
---|
873 | scene_blend none
|
---|
874 |
|
---|
875 | pass
|
---|
876 | {
|
---|
877 | vertex_program_ref GameTools/SceneCameraDepthVS
|
---|
878 | {
|
---|
879 | param_named_auto worldView worldview_matrix
|
---|
880 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
881 | param_named_auto farplane far_clip_distance
|
---|
882 | }
|
---|
883 | fragment_program_ref GameTools/SceneDepthPS
|
---|
884 | {
|
---|
885 |
|
---|
886 | }
|
---|
887 |
|
---|
888 | }
|
---|
889 | }
|
---|
890 | }
|
---|
891 |
|
---|
892 | material GameTools/ShadowMapDepth
|
---|
893 | {
|
---|
894 |
|
---|
895 | technique
|
---|
896 | {
|
---|
897 | scene_blend none
|
---|
898 |
|
---|
899 | pass
|
---|
900 | {
|
---|
901 | cull_hardware anticlockwise
|
---|
902 |
|
---|
903 | vertex_program_ref GameTools/ShadowMap/DepthVS
|
---|
904 | {
|
---|
905 | param_named_auto worldView worldview_matrix
|
---|
906 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
907 |
|
---|
908 | }
|
---|
909 | fragment_program_ref GameTools/ShadowMap/DepthPS
|
---|
910 | {
|
---|
911 |
|
---|
912 | }
|
---|
913 |
|
---|
914 | }
|
---|
915 | }
|
---|
916 | }
|
---|
917 |
|
---|
918 | material GameTools/Cau
|
---|
919 | {
|
---|
920 | technique
|
---|
921 | {
|
---|
922 | pass
|
---|
923 |
|
---|
924 | cull_hardware none
|
---|
925 | cull_software none
|
---|
926 | lighting off
|
---|
927 | scene_blend add
|
---|
928 | scene_blend src_alpha one
|
---|
929 | depth_write off
|
---|
930 |
|
---|
931 | vertex_program_ref GameTools/CauVS
|
---|
932 | {
|
---|
933 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
934 | param_named_auto worldView worldview_matrix
|
---|
935 | param_named_auto Proj projection_matrix
|
---|
936 | param_named_auto resolution viewport_width
|
---|
937 | param_named CauSpriteSize float 1.0
|
---|
938 | }
|
---|
939 | fragment_program_ref GameTools/CauPS
|
---|
940 | {
|
---|
941 | param_named CauSpriteIntens float 1.0
|
---|
942 | }
|
---|
943 |
|
---|
944 | texture_unit
|
---|
945 | {
|
---|
946 | vertex_texture true
|
---|
947 | texture flare.png
|
---|
948 | }
|
---|
949 | texture_unit
|
---|
950 | {
|
---|
951 | texture PowerOfPhotonHitTexel.dds
|
---|
952 | }
|
---|
953 |
|
---|
954 | }
|
---|
955 | }
|
---|
956 | }
|
---|
957 |
|
---|
958 | material GameTools/SpriteShader
|
---|
959 | {
|
---|
960 |
|
---|
961 | technique
|
---|
962 | {
|
---|
963 | pass
|
---|
964 | {
|
---|
965 |
|
---|
966 | cull_hardware none
|
---|
967 | cull_software none
|
---|
968 | lighting off
|
---|
969 | scene_blend add
|
---|
970 | depth_write off
|
---|
971 |
|
---|
972 | vertex_program_ref GameTools/SpriteVS
|
---|
973 | {
|
---|
974 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
975 | param_named_auto worldView worldview_matrix
|
---|
976 | param_named_auto Proj projection_matrix
|
---|
977 | }
|
---|
978 | fragment_program_ref GameTools/SpritePS
|
---|
979 | {
|
---|
980 |
|
---|
981 | }
|
---|
982 |
|
---|
983 | texture_unit
|
---|
984 | {
|
---|
985 | texture flare.png
|
---|
986 | }
|
---|
987 |
|
---|
988 | }
|
---|
989 | }
|
---|
990 | }
|
---|
991 |
|
---|
992 |
|
---|
993 | material GameTools/SBB
|
---|
994 | {
|
---|
995 |
|
---|
996 | technique
|
---|
997 | {
|
---|
998 | pass
|
---|
999 | {
|
---|
1000 | lighting off
|
---|
1001 |
|
---|
1002 | scene_blend src_alpha one
|
---|
1003 | //scene_blend src_alpha one_minus_src_alpha
|
---|
1004 | depth_write off
|
---|
1005 | depth_check off
|
---|
1006 |
|
---|
1007 | vertex_program_ref GameTools/SBBVS
|
---|
1008 | {
|
---|
1009 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
1010 | param_named_auto worldView worldview_matrix
|
---|
1011 | param_named_auto Proj projection_matrix
|
---|
1012 | param_named_auto width viewport_width
|
---|
1013 | param_named_auto height viewport_height
|
---|
1014 |
|
---|
1015 |
|
---|
1016 | }
|
---|
1017 | fragment_program_ref GameTools/SBBPS
|
---|
1018 | {
|
---|
1019 | param_named_auto farplane far_clip_distance
|
---|
1020 | param_named_auto nearplane near_clip_distance
|
---|
1021 |
|
---|
1022 | }
|
---|
1023 |
|
---|
1024 | texture_unit
|
---|
1025 | {
|
---|
1026 | anim_texture smokealpha.tga 32 2.0
|
---|
1027 | //texture flare.png
|
---|
1028 | }
|
---|
1029 |
|
---|
1030 | texture_unit
|
---|
1031 | {
|
---|
1032 | filtering none
|
---|
1033 | }
|
---|
1034 |
|
---|
1035 | texture_unit
|
---|
1036 | {
|
---|
1037 | texture planck.tga
|
---|
1038 | }
|
---|
1039 |
|
---|
1040 | }
|
---|
1041 | }
|
---|
1042 | } |
---|