source: GTP/trunk/App/Demos/Geom/OgreStuff/media/materials/scripts/Example.material @ 1128

Revision 1128, 10.4 KB checked in by gumbau, 18 years ago (diff)

Demos finished for the meeting at Budapest

Line 
1
2material Examples/EnvMappedRustySteel
3{
4        technique
5        {
6                pass
7                {
8
9                        texture_unit
10                        {
11                                texture RustySteel.jpg
12                        }
13
14                        texture_unit
15                        {
16                                texture spheremap.png
17                                colour_op_ex add src_texture src_current
18                                colour_op_multipass_fallback one one
19                                env_map spherical
20                        }
21                }
22        }
23}
24material Examples/OgreLogo
25{
26        technique
27        {
28                pass
29                {
30                        ambient 0.8 0.8 0.8
31
32                        texture_unit
33                        {
34                                texture ogrelogo.png
35                        }
36                }
37        }
38}
39
40material LODStripsDemo/Ogro
41{
42        technique
43        {
44                pass
45                {
46                        ambient 0.8 0.8 0.8
47                        cull_hardware none
48
49                        texture_unit
50                        {
51                                texture player.jpg
52                        }
53                }
54        }
55}
56
57
58material Examples/DarkMaterial
59{
60        technique
61        {
62                pass
63                {
64                        ambient 0.1 0.1 0.1
65
66                        texture_unit
67                        {
68                                texture BeachStones.jpg
69                        }
70                }
71        }
72}
73material Examples/SpaceSkyBox
74{
75        technique
76        {
77                pass
78                {
79                        lighting off
80                        depth_write off
81
82                        texture_unit
83                        {
84                                cubic_texture stevecube.jpg separateUV
85                                tex_address_mode clamp
86                        }
87                }
88        }
89}
90material Examples/SceneSkyBox1
91{
92        technique
93        {
94                pass
95                {
96                        lighting off
97                        depth_write off
98
99                        texture_unit
100                        {
101                                cubic_texture cubemap_fr.jpg cubemap_bk.jpg cubemap_lf.jpg cubemap_rt.jpg cubemap_up.jpg cubemap_dn.jpg separateUV
102                                tex_address_mode clamp
103                        }
104                }
105        }
106}
107material Examples/SceneCubeMap1
108{
109        technique
110        {
111                pass
112                {
113                        lighting off
114
115                        texture_unit
116                        {
117                                cubic_texture cubemap.jpg combinedUVW
118                                tex_address_mode clamp
119                                env_map cubic_reflection
120                        }
121                }
122        }
123}
124material Examples/SceneSkyBox2
125{
126        technique
127        {
128                pass
129                {
130                        lighting off
131                        depth_write off
132
133                        texture_unit
134                        {
135                                cubic_texture cubescene_fr.jpg cubescene_bk.jpg cubescene_lf.jpg cubescene_rt.jpg cubescene_up.jpg cubescene_dn.jpg separateUV
136                                tex_address_mode clamp
137                        }
138                }
139        }
140}
141material Examples/SceneCubeMap2
142{
143        technique
144        {
145                pass
146                {
147                        lighting off
148
149                        texture_unit
150                        {
151                                cubic_texture cubescene.jpg combinedUVW
152                                tex_address_mode clamp
153                                env_map cubic_reflection
154                        }
155                }
156        }
157}
158
159material Examples/CloudyNoonSkyBox
160{
161        technique
162        {
163                pass
164                {
165                        lighting off
166                        depth_write off
167
168                        texture_unit
169                        {
170                                cubic_texture cloudy_noon.jpg separateUV
171                                tex_address_mode clamp
172                        }
173                }
174        }
175}
176
177material Examples/StormySkyBox
178{
179        technique
180        {
181                pass
182                {
183                        lighting off
184                        depth_write off
185
186                        texture_unit
187                        {
188                                cubic_texture stormy.jpg separateUV
189                                tex_address_mode clamp
190                        }
191                }
192        }
193}
194
195material Examples/MorningSkyBox
196{
197        technique
198        {
199                pass
200                {
201                        lighting off
202                        depth_write off
203
204                        texture_unit
205                        {
206                                cubic_texture morning.jpg separateUV
207                                tex_address_mode clamp
208                        }
209                }
210        }
211}
212
213material Examples/EveningSkyBox
214{
215        technique
216        {
217                pass
218                {
219                        lighting off
220                        depth_write off
221
222                        texture_unit
223                        {
224                                cubic_texture evening.jpg separateUV
225                                tex_address_mode clamp
226                        }
227                }
228        }
229}
230
231material Examples/CloudySky
232{
233        technique
234        {
235                pass
236                {
237                        lighting off
238                        depth_write off
239
240                        texture_unit
241                        {
242                                texture clouds.jpg
243                                scroll_anim 0.15 0
244                        }
245                }
246        }
247}
248material Examples/RustySteel
249{
250        technique
251        {
252                pass
253                {
254
255                        texture_unit
256                        {
257                                texture RustySteel.jpg
258                        }
259                }
260        }
261}
262material Examples/Chrome
263{
264        technique
265        {
266                pass
267                {
268
269                        texture_unit
270                        {
271                                texture Chrome.jpg
272                                env_map spherical
273                        }
274                }
275        }
276}
277material Examples/SpaceSkyPlane
278{
279        technique
280        {
281                pass
282                {
283                        lighting off
284                        depth_write off
285                        fog_override true none
286
287                        texture_unit
288                        {
289                                texture spacesky.jpg
290                        }
291                }
292        }
293}
294material Examples/TextureEffect1
295{
296        technique
297        {
298                pass
299                {
300                        ambient 0.75 0.75 0.75
301                        cull_hardware none
302                        cull_software none
303
304                        texture_unit
305                        {
306                                texture BumpyMetal.jpg
307                                rotate_anim 0.2
308                                wave_xform scale_x sine 1 0.1 0 5
309                                wave_xform scale_y sine 0.5 0.2 0.5 3
310                        }
311                }
312        }
313}
314material Examples/TextureEffect2
315{
316        technique
317        {
318                pass
319                {
320
321                        texture_unit
322                        {
323                                texture Water02.jpg
324                                scroll_anim 0.5 0
325                        }
326                }
327        }
328}
329material Examples/TextureEffect3
330{
331        technique
332        {
333                pass
334                {
335                        ambient 0.7 0.7 0.7
336                        cull_hardware none
337                        cull_software none
338
339                        texture_unit
340                        {
341                                texture Water01.jpg
342                                scroll_anim -0.25 0.1
343                        }
344
345                        texture_unit
346                        {
347                                texture Water01.jpg
348                                colour_op_ex add src_texture src_current
349                                colour_op_multipass_fallback one one
350                                scroll_anim -0.1 0.25
351                        }
352                }
353        }
354}
355material Examples/TextureEffect4
356{
357        technique
358        {
359                pass
360                {
361                        ambient 0.3 0.3 0.3
362                        scene_blend colour_blend
363                        cull_hardware none
364                        cull_software none
365
366                        texture_unit
367                        {
368                                texture Water02.jpg
369                                scroll_anim 0.01 0.01
370                        }
371                }
372        }
373}
374material Examples/BumpyMetal
375{
376        technique
377        {
378                pass
379                {
380                        ambient 0.75 0.75 0.75
381                        cull_hardware none
382                        cull_software none
383
384                        texture_unit
385                        {
386                                texture BumpyMetal.jpg
387                        }
388                }
389        }
390}
391material Examples/TransparentTest
392{
393        technique
394        {
395                pass
396                {
397                        ambient 0.2 0.2 0.2
398                        scene_blend add
399                        depth_write off
400
401                        texture_unit
402                        {
403                                texture Water01.jpg
404                                scroll_anim 0.25 0
405                        }
406
407                        texture_unit
408                        {
409                                texture Water01.jpg
410                                wave_xform scroll_y sine 0 0.1 0 0.5
411                        }
412                }
413        }
414}
415material Examples/Flare
416{
417        technique
418        {
419                pass
420                {
421                        lighting off
422                        scene_blend add
423                        depth_write off
424
425                        texture_unit
426                        {
427                                texture flare.png
428                        }
429                }
430        }
431}
432material Examples/Flare2
433{
434        technique
435        {
436                pass
437                {
438                        lighting off
439                        scene_blend add
440                        depth_write off
441
442                        texture_unit
443                        {
444                                texture flaretrail.png
445                        }
446                }
447        }
448}
449
450material Examples/Droplet
451{
452        technique
453        {
454                pass
455                {
456                        scene_blend colour_blend
457                        depth_write off
458
459                        texture_unit
460                        {
461                                texture basic_droplet.png
462                        }
463                }
464        }
465}
466material Examples/Hilite/Yellow
467{
468        technique
469        {
470                pass
471                {
472
473                        texture_unit
474                        {
475                                texture dkyellow.png
476                        }
477                }
478        }
479}
480material Examples/Rocky
481{
482        technique
483        {
484                pass
485                {
486                        ambient 0.2 0.2 0.2
487
488                        texture_unit
489                        {
490                                texture egyptrockyfull.jpg
491                        }
492                }
493        }
494}
495material Examples/10PointBlock
496{
497        technique
498        {
499                pass
500                {
501
502                        texture_unit
503                        {
504                                texture 10points.png
505                        }
506                }
507        }
508}
509material Material__25
510{
511        technique
512        {
513                pass
514                {
515
516                        texture_unit
517                        {
518                                texture texmap2.jpg
519                        }
520                }
521        }
522}
523material 2 - Default
524{
525        technique
526        {
527                pass
528                {
529
530                        texture_unit
531                        {
532                                texture MtlPlat2.jpg
533                        }
534                }
535        }
536}
537material Material #8
538{
539        technique
540        {
541                pass
542                {
543
544                        texture_unit
545                        {
546                                texture BODY.jpg
547                        }
548                }
549        }
550}
551material Material #3
552{
553        technique
554        {
555                pass
556                {
557
558                        texture_unit
559                        {
560                                texture HEAD4.jpg
561                        }
562                }
563        }
564}
565material Material #9
566{
567        technique
568        {
569                pass
570                {
571
572                        texture_unit
573                        {
574                                texture LEGS.jpg
575                        }
576                }
577        }
578}
579
580material Examples/Fish
581{
582        technique
583        {
584                pass
585                {
586                        texture_unit
587                        {
588                                texture steelhead.png
589                        }
590                }
591        }
592}
593material Examples/Ninja
594{
595        technique
596        {
597                pass
598                {
599                        cull_hardware none
600                        cull_software none
601               
602                        texture_unit
603                        {
604                                texture nskingr.jpg
605                        }
606                }
607        }
608}
609material Examples/Ninja2
610{
611        technique
612        {
613                pass
614                {
615               
616                        cull_hardware none
617                        cull_software none
618
619                        texture_unit
620                        {
621                                texture nskinwh.jpg
622                        }
623                }
624        }
625}
626
627material Examples/Trunk
628{
629        technique
630        {
631                pass
632                {
633                        cull_hardware none
634                        cull_software none
635               
636                        texture_unit
637                        {
638                                texture bark04_r.png
639                        }
640                }
641        }
642}
643
644material Examples/Robot
645{
646        // Hardware skinning technique
647        technique
648        {
649                pass
650                {
651                        vertex_program_ref Ogre/HardwareSkinningOneWeight
652                        {
653                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
654                                param_named_auto viewProjectionMatrix viewproj_matrix
655                                param_named_auto lightPos[0] light_position 0
656                                param_named_auto lightPos[1] light_position 1
657                                param_named_auto lightDiffuseColour[0] light_diffuse_colour 0
658                                param_named_auto lightDiffuseColour[1] light_diffuse_colour 1
659                                param_named_auto ambient ambient_light_colour
660                       
661                        }
662                        // alternate shadow caster program
663                        shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster
664                        {
665                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
666                                param_named_auto viewProjectionMatrix viewproj_matrix
667                                param_named_auto ambient ambient_light_colour
668                       
669                        }
670
671                        texture_unit
672                        {
673                                texture r2skin.jpg
674                        }
675                }
676        }
677
678        // Software blending technique
679        technique
680        {
681                pass
682                {
683
684                        texture_unit
685                        {
686                                texture r2skin.jpg
687                        }
688                }
689        }
690}
691
692material Examples/GrassFloor
693{
694        technique
695        {
696                pass
697                {
698                        texture_unit
699                        {
700                                texture grass_1024.jpg
701                        }
702                }
703        }
704}
705
706vertex_program Examples/GrassWaverVp cg
707{
708        source Grass.cg
709        entry_point grass_vp
710        profiles vs_1_1 arbvp1
711}
712
713material Examples/GrassBlades
714{
715        // Vertex program waving grass
716    technique
717    {
718        pass
719        {
720                        vertex_program_ref Examples/GrassWaverVp
721                        {
722                                param_named_auto worldViewProj worldviewproj_matrix
723                                param_named_auto ambient ambient_light_colour
724                                param_named_auto objSpaceLight light_position_object_space 0
725                                param_named_auto lightColour light_diffuse_colour 0
726                                param_named_auto offset custom 999
727                        }
728                        alpha_rejection greater 150
729                        scene_blend alpha_blend
730                    cull_hardware none
731            cull_software none
732            texture_unit
733            {
734                texture gras_02.png
735            }
736        }
737    }
738
739        // Non-vertex program technique (no waving)
740        technique
741    {
742        pass
743        {
744                        alpha_rejection greater 150
745                        scene_blend alpha_blend
746                    cull_hardware none
747            cull_software none
748            texture_unit
749            {
750                texture gras_02.png
751            }
752        }
753    }
754}
755
756material Examples/Populifolia/leaf
757{
758    technique
759    {
760        pass
761        {
762                alpha_rejection greater 150
763                scene_blend alpha_blend
764              cull_hardware none
765            cull_software none
766            texture_unit
767            {
768                texture Pinus-leaf-inv.tif
769            }
770        }
771    }
772}
773
774material Examples/Populifolia/trunk
775{
776        technique
777        {
778                pass
779                {
780                        cull_hardware anticlockwise
781                        texture_unit
782                        {
783                                texture populifolia-trunk.png
784                        }
785                }
786        }
787}
788
789material Examples/Rockwall
790{
791        technique
792        {
793                pass
794                {
795                        texture_unit
796                        {
797                                texture rockwall.tga
798                        }
799                }
800        }
801}
802
803material TestTerrainMaterial
804{
805        technique
806        {
807                pass
808                {
809
810                        texture_unit
811                        {
812                                texture terrain_texture.jpg
813                        }
814
815                }
816        }
817}
Note: See TracBrowser for help on using the repository browser.