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

Revision 1092, 9.7 KB checked in by gumbau, 18 years ago (diff)

LodStrips? and LODTrees demos

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