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

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