source: GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PRMDemo.material @ 2422

Revision 2422, 2.3 KB checked in by szirmay, 17 years ago (diff)
Line 
1material PRMDemo/Base
2{
3 technique maintechnique
4 {
5   pass mainpass
6   {
7        IllumTechniques
8        {
9                RenderTechnique PathMap
10                {
11                pass_blending one one
12                }
13                RenderTechnique DepthShadowReceiver
14                {
15                                pass_blending zero src_colour
16                        max_light_count 1
17                                vertex_program_name GTP/Basic/LightCPos_VS
18                                //fragment_program_name GTP/Basic/SM/Dist_VSM_PS
19                                fragment_program_name GTP/Basic/SM/Dist_PS
20                                set_light_view true
21                                set_light_farplane true
22                                light_viewproj_param_name LightViewProj
23                                light_view_param_name LightView
24                                light_farplane_param_name lightFarPlane
25                                world_view_proj_param_name WorldViewProj
26                                world_param_name World
27                }               
28        }
29        vertex_program_ref GTP/Basic/ShadedTex_VS
30        {
31                param_named_auto WorldViewProj worldviewproj_matrix
32                param_named_auto World world_matrix
33                param_named_auto WorldInv inverse_world_matrix
34        }
35        fragment_program_ref GTP/Basic/Shaded/TexturedTwoLights_PS
36        {
37                param_named_auto lightPos1 light_position 0
38                param_named_auto lightDir1 light_direction 0
39                param_named_auto lightColor1 light_diffuse_colour 0
40                param_named_auto lightPower1 light_power 0
41               
42                param_named_auto lightPos2 light_position 1
43                param_named_auto lightDir2 light_direction 1
44                param_named_auto lightColor2 light_diffuse_colour 1
45                param_named_auto lightPower2 light_power 1
46        }
47        texture_unit color
48        {
49        colour_op replace
50    }   
51   }   
52 }
53}
54
55
56material PRMDemo/rustyMetal : PRMDemo/Base
57{
58 technique maintechnique
59 {
60   pass mainpass
61   {
62   texture_unit color
63    {
64     texture wrtile.jpg     
65    }
66   }
67  }
68}
69
70material PRMDemo/redwire : PRMDemo/Base
71{
72 technique maintechnique
73 {
74   pass mainpass
75   {
76   texture_unit color
77    {
78     texture redwire.bmp
79    }
80   }
81  }
82}
83
84material PRMDemo/greenwire : PRMDemo/Base
85{
86 technique maintechnique
87 {
88   pass mainpass
89   {
90   texture_unit color
91    {
92     texture greenwire.bmp
93    }
94   }
95  }
96}
97
98material PRMDemo/whitewire : PRMDemo/Base
99{
100 technique maintechnique
101 {
102   pass mainpass
103   {
104   texture_unit color
105    {
106     texture whitewire.bmp
107    }
108   }
109  }
110}
111
112material PRMDemo/iron : PRMDemo/Base
113{
114 technique maintechnique
115 {
116   pass mainpass
117   {
118   texture_unit color
119    {
120     texture w2.jpg
121    }
122   }
123  }
124}
Note: See TracBrowser for help on using the repository browser.