source: GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material @ 2376

Revision 2376, 2.9 KB checked in by szirmay, 18 years ago (diff)
Line 
1material phong22
2{
3        technique
4        {
5                pass
6                {
7                        texture_unit
8                        {
9                                texture eyeball.jpg
10                                tex_coord_set 0
11                                colour_op modulate
12                        }
13                }
14        }
15}
16material phong44
17{
18        technique
19        {
20                pass
21                {
22
23                        texture_unit
24                        {
25                                texture trollbody.png
26                                tex_coord_set 0
27                                colour_op modulate
28                        }
29                }
30        }
31}
32material phong11
33{
34        technique
35        {
36                pass
37                {
38
39                        texture_unit
40                        {
41                                texture trollhead.png
42                                tex_coord_set 0
43                                colour_op modulate
44                        }
45                }
46        }
47}
48
49vertex_program TrollSkinningOneWeight cg
50{
51   source trollvs.hlsl
52   entry_point trollSkinning_One_Weight_vp
53   profiles vs_2_0
54   includes_skeletal_animation true   
55}
56
57vertex_program TrollSkinningSMGen cg
58{
59   source trollvs.hlsl
60   entry_point trollSkinning_SMGen_One_Weight_vp
61   profiles vs_2_0
62   includes_skeletal_animation true   
63}
64
65
66material trollShadowMapGen_POINT
67{
68        technique
69        {
70                pass
71                {
72                        vertex_program_ref TrollSkinningSMGen
73                        {
74                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
75                                param_named_auto viewProjectionMatrix viewproj_matrix
76                                param_named_auto viewMatrix view_matrix                         
77                        }
78                  fragment_program_ref GTP/Basic/CDistNorm_PS
79                   {   
80                    param_named_auto farPlane far_clip_distance
81                   } 
82                }
83        }
84}
85
86material trollCameraDepth
87{
88        technique
89        {
90                pass
91                {
92                        vertex_program_ref TrollSkinningSMGen
93                        {
94                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
95                                param_named_auto viewProjectionMatrix viewproj_matrix
96                                param_named_auto viewMatrix view_matrix                         
97                        }                   
98                        fragment_program_ref GTP/Basic/CDepth_PS
99                    {
100                        param_named_auto farplane far_clip_distance
101                    } 
102                }
103        }
104}
105
106material trollBase
107{
108        technique maintechnique
109        {
110                pass mainpass
111                {
112                        IllumTechniques
113                        {
114                                RenderTechnique Triggers
115                                {
116                                        ILLUM_TRIGGER_SM_POINT trollShadowMapGen_POINT
117                                        ILLUM_TRIGGER_CAMERADEPTH trollCameraDepth
118                                }
119                        }
120                        vertex_program_ref TrollSkinningOneWeight
121                        {
122                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
123                                param_named_auto viewProjectionMatrix viewproj_matrix
124                                param_named_auto lightPos[0] light_position 0
125                                param_named_auto lightPos[1] light_position 1
126                                param_named_auto lightDiffuseColour[0] light_diffuse_colour 0
127                                param_named_auto lightDiffuseColour[1] light_diffuse_colour 1
128                                param_named_auto ambient ambient_light_colour
129                       
130                        }
131                        texture_unit basetexture
132                        {
133                        }
134                }
135        }
136}
137material phong2 : trollBase
138{
139        technique maintechnique
140        {
141                pass mainpass
142                {                       
143                        texture_unit basetexture
144                        {
145                                texture eyeball.jpg
146                                tex_coord_set 0
147                                colour_op modulate
148                        }
149                }
150        }
151}
152material phong4 : trollBase
153{
154        technique maintechnique
155        {
156                pass mainpass
157                {                       
158                        texture_unit basetexture
159                        {
160                                texture trollbody.png
161                                tex_coord_set 0
162                                colour_op modulate
163                        }
164                }
165        }
166}
167material phong1 : trollBase
168{
169        technique maintechnique
170        {
171                pass mainpass
172                {               
173                        texture_unit basetexture
174                        {
175                                texture trollhead.png
176                                tex_coord_set 0
177                                colour_op modulate
178                        }
179                }
180        }
181}
Note: See TracBrowser for help on using the repository browser.