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

Revision 2368, 2.4 KB checked in by szirmay, 17 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 trollBase
87{
88        technique maintechnique
89        {
90                pass mainpass
91                {
92                        IllumTechniques
93                        {
94                                RenderTechnique Triggers
95                                {
96                                        ILLUM_TRIGGER_SM_POINT trollShadowMapGen_POINT
97                                }
98                        }
99                        vertex_program_ref TrollSkinningOneWeight
100                        {
101                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
102                                param_named_auto viewProjectionMatrix viewproj_matrix
103                                param_named_auto lightPos[0] light_position 0
104                                param_named_auto lightPos[1] light_position 1
105                                param_named_auto lightDiffuseColour[0] light_diffuse_colour 0
106                                param_named_auto lightDiffuseColour[1] light_diffuse_colour 1
107                                param_named_auto ambient ambient_light_colour
108                       
109                        }
110                        texture_unit basetexture
111                        {
112                        }
113                }
114        }
115}
116material phong2 : trollBase
117{
118        technique maintechnique
119        {
120                pass mainpass
121                {                       
122                        texture_unit basetexture
123                        {
124                                texture eyeball.jpg
125                                tex_coord_set 0
126                                colour_op modulate
127                        }
128                }
129        }
130}
131material phong4 : trollBase
132{
133        technique maintechnique
134        {
135                pass mainpass
136                {                       
137                        texture_unit basetexture
138                        {
139                                texture trollbody.png
140                                tex_coord_set 0
141                                colour_op modulate
142                        }
143                }
144        }
145}
146material phong1 : trollBase
147{
148        technique maintechnique
149        {
150                pass mainpass
151                {               
152                        texture_unit basetexture
153                        {
154                                texture trollhead.png
155                                tex_coord_set 0
156                                colour_op modulate
157                        }
158                }
159        }
160}
Note: See TracBrowser for help on using the repository browser.