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

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