source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material @ 1081

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