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

Revision 2404, 2.8 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       
10                RenderTechnique PathMap
11                {
12                        pass_blending one one
13                }
14         
15               
16        }
17        vertex_program_ref GTP/Basic/ShadedTex_VS
18        {
19                param_named_auto WorldViewProj worldviewproj_matrix
20                param_named_auto World world_matrix
21                param_named_auto WorldInv inverse_world_matrix
22        }
23        fragment_program_ref GTP/Basic/Shaded/TexturedTwoLights_PS
24        {
25                param_named_auto lightPos1 light_position 0
26                param_named_auto lightDir1 light_direction 0
27                param_named_auto lightColor1 light_diffuse_colour 0
28                param_named_auto lightPower1 light_power 0
29               
30                param_named_auto lightPos2 light_position 1
31                param_named_auto lightDir2 light_direction 1
32                param_named_auto lightColor2 light_diffuse_colour 1
33                param_named_auto lightPower2 light_power 1
34        }
35        texture_unit color
36        {
37        colour_op replace
38    }   
39   }   
40 }
41}
42
43
44material PRMDemo/rustyMetal : PRMDemo/Base
45{
46 technique maintechnique
47 {
48   pass mainpass
49   {
50   texture_unit color
51    {
52     texture wrtile.jpg     
53    }
54   }
55  }
56}
57
58material PRMDemo/redwire : PRMDemo/Base
59{
60 technique maintechnique
61 {
62   pass mainpass
63   {
64   texture_unit color
65    {
66     texture redwire.bmp
67    }
68   }
69  }
70}
71
72material PRMDemo/greenwire : PRMDemo/Base
73{
74 technique maintechnique
75 {
76   pass mainpass
77   {
78   texture_unit color
79    {
80     texture greenwire.bmp
81    }
82   }
83  }
84}
85
86material PRMDemo/whitewire : PRMDemo/Base
87{
88 technique maintechnique
89 {
90   pass mainpass
91   {
92   texture_unit color
93    {
94     texture whitewire.bmp
95    }
96   }
97  }
98}
99
100material PRMDemo/iron : PRMDemo/Base
101{
102 technique maintechnique
103 {
104   pass mainpass
105   {
106   texture_unit color
107    {
108     texture w2.jpg
109    }
110   }
111  }
112}
113
114
115
116RenderTechnique DepthShadowReceiver
117         {
118                        pass_blending one zero
119                max_light_count 1
120                        vertex_program_name GTP/Basic/LightCPos_VS
121                        //fragment_program_name GTP/Basic/SM/Dist_VSM_PS
122                        fragment_program_name GTP/Basic/SM/Dist_PS
123                        set_light_view true
124                        set_light_farplane true
125                        light_viewproj_param_name LightViewProj
126                        light_view_param_name LightView
127                        light_farplane_param_name lightFarPlane
128                        world_view_proj_param_name WorldViewProj
129                        world_param_name World
130         }
131         
132         
133                RenderTechnique DepthShadowReceiver
134         {
135                        pass_blending zero src_colour
136                max_light_count 1
137                        vertex_program_name GTP/Basic/LightCPos_VS
138                        //fragment_program_name GTP/Basic/SM/Dist_VSM_PS
139                        fragment_program_name GTP/Basic/SM/Dist_PS
140                        set_light_view true
141                        set_light_farplane true
142                        light_viewproj_param_name LightViewProj
143                        light_view_param_name LightView
144                        light_farplane_param_name lightFarPlane
145                        world_view_proj_param_name WorldViewProj
146                        world_param_name World
147         }
Note: See TracBrowser for help on using the repository browser.