1 | material phong2 |
---|
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 | } |
---|
16 | material phong4 |
---|
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 | } |
---|
32 | material phong1 |
---|
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 | |
---|
49 | vertex_program TrollSkinningOneWeight cg |
---|
50 | { |
---|
51 | source trollvs.cg |
---|
52 | entry_point trollSkinning_One_Weight_vp |
---|
53 | profiles vs_2_0 |
---|
54 | includes_skeletal_animation true |
---|
55 | } |
---|
56 | |
---|
57 | material phong22 |
---|
58 | { |
---|
59 | technique |
---|
60 | { |
---|
61 | pass |
---|
62 | { |
---|
63 | ambient 1 1 1 1 |
---|
64 | diffuse 1 1 1 1 |
---|
65 | specular 0.5 0.5 0.5 20 |
---|
66 | emissive 0 0 0 |
---|
67 | |
---|
68 | vertex_program_ref TrollSkinningOneWeight |
---|
69 | { |
---|
70 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 |
---|
71 | param_named_auto viewProjectionMatrix viewproj_matrix |
---|
72 | param_named_auto lightPos[0] light_position 0 |
---|
73 | param_named_auto lightPos[1] light_position 1 |
---|
74 | param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 |
---|
75 | param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 |
---|
76 | param_named_auto ambient ambient_light_colour |
---|
77 | |
---|
78 | } |
---|
79 | // alternate shadow caster program |
---|
80 | shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster |
---|
81 | { |
---|
82 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 |
---|
83 | param_named_auto viewProjectionMatrix viewproj_matrix |
---|
84 | param_named_auto ambient ambient_light_colour |
---|
85 | |
---|
86 | } |
---|
87 | |
---|
88 | texture_unit |
---|
89 | { |
---|
90 | texture eyeball.jpg |
---|
91 | tex_coord_set 0 |
---|
92 | colour_op modulate |
---|
93 | } |
---|
94 | } |
---|
95 | } |
---|
96 | } |
---|
97 | material phong44 |
---|
98 | { |
---|
99 | technique |
---|
100 | { |
---|
101 | pass |
---|
102 | { |
---|
103 | |
---|
104 | vertex_program_ref TrollSkinningOneWeight |
---|
105 | { |
---|
106 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 |
---|
107 | param_named_auto viewProjectionMatrix viewproj_matrix |
---|
108 | param_named_auto lightPos[0] light_position 0 |
---|
109 | param_named_auto lightPos[1] light_position 1 |
---|
110 | param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 |
---|
111 | param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 |
---|
112 | param_named_auto ambient ambient_light_colour |
---|
113 | |
---|
114 | } |
---|
115 | // alternate shadow caster program |
---|
116 | shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster |
---|
117 | { |
---|
118 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 |
---|
119 | param_named_auto viewProjectionMatrix viewproj_matrix |
---|
120 | param_named_auto ambient ambient_light_colour |
---|
121 | |
---|
122 | } |
---|
123 | |
---|
124 | texture_unit |
---|
125 | { |
---|
126 | texture trollbody.png |
---|
127 | tex_coord_set 0 |
---|
128 | colour_op modulate |
---|
129 | } |
---|
130 | } |
---|
131 | } |
---|
132 | } |
---|
133 | material phong11 |
---|
134 | { |
---|
135 | technique |
---|
136 | { |
---|
137 | pass |
---|
138 | { |
---|
139 | |
---|
140 | vertex_program_ref TrollSkinningOneWeight |
---|
141 | { |
---|
142 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 |
---|
143 | param_named_auto viewProjectionMatrix viewproj_matrix |
---|
144 | param_named_auto lightPos[0] light_position 0 |
---|
145 | param_named_auto lightPos[1] light_position 1 |
---|
146 | param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 |
---|
147 | param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 |
---|
148 | param_named_auto ambient ambient_light_colour |
---|
149 | |
---|
150 | } |
---|
151 | // alternate shadow caster program |
---|
152 | shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster |
---|
153 | { |
---|
154 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 |
---|
155 | param_named_auto viewProjectionMatrix viewproj_matrix |
---|
156 | param_named_auto ambient ambient_light_colour |
---|
157 | |
---|
158 | } |
---|
159 | |
---|
160 | texture_unit |
---|
161 | { |
---|
162 | texture trollhead.png |
---|
163 | tex_coord_set 0 |
---|
164 | colour_op modulate |
---|
165 | } |
---|
166 | } |
---|
167 | } |
---|
168 | } |
---|