1 | vertex_program TrollSkinningOneWeight cg
|
---|
2 | {
|
---|
3 | source SkinningVS.cg
|
---|
4 | entry_point trollSkinning_One_Weight_vp
|
---|
5 | profiles vs_2_0
|
---|
6 | includes_skeletal_animation true
|
---|
7 | }
|
---|
8 |
|
---|
9 | vertex_program TrollSkinningSMGen cg
|
---|
10 | {
|
---|
11 | source SkinningVS.cg
|
---|
12 | entry_point trollSkinning_SMGen_One_Weight_vp
|
---|
13 | profiles vs_2_0
|
---|
14 | includes_skeletal_animation true
|
---|
15 | }
|
---|
16 |
|
---|
17 | fragment_program TrollPS hlsl
|
---|
18 | {
|
---|
19 | source trollps.hlsl
|
---|
20 | entry_point Troll_PS
|
---|
21 | target ps_3_0
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | material trollShadowMapGen_POINT
|
---|
26 | {
|
---|
27 | technique
|
---|
28 | {
|
---|
29 | pass
|
---|
30 | {
|
---|
31 | vertex_program_ref TrollSkinningSMGen
|
---|
32 | {
|
---|
33 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
34 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
35 | param_named_auto viewMatrix view_matrix
|
---|
36 | }
|
---|
37 | fragment_program_ref GTP/Basic/CDistNorm_PS
|
---|
38 | {
|
---|
39 | param_named_auto farPlane far_clip_distance
|
---|
40 | }
|
---|
41 | }
|
---|
42 | }
|
---|
43 | }
|
---|
44 |
|
---|
45 | material trollCameraDepth
|
---|
46 | {
|
---|
47 | technique
|
---|
48 | {
|
---|
49 | pass
|
---|
50 | {
|
---|
51 | vertex_program_ref TrollSkinningSMGen
|
---|
52 | {
|
---|
53 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
54 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
55 | param_named_auto viewMatrix view_matrix
|
---|
56 | }
|
---|
57 | fragment_program_ref GTP/Basic/CDepth_PS
|
---|
58 | {
|
---|
59 | param_named_auto farplane far_clip_distance
|
---|
60 | }
|
---|
61 | }
|
---|
62 | }
|
---|
63 | }
|
---|
64 |
|
---|
65 | material trollBase
|
---|
66 | {
|
---|
67 | technique maintechnique
|
---|
68 | {
|
---|
69 | pass mainpass
|
---|
70 | {
|
---|
71 | IllumTechniques
|
---|
72 | {
|
---|
73 | RenderTechnique Triggers
|
---|
74 | {
|
---|
75 | ILLUM_TRIGGER_SM_POINT trollShadowMapGen_POINT
|
---|
76 | ILLUM_TRIGGER_CAMERADEPTH trollCameraDepth
|
---|
77 | }
|
---|
78 | }
|
---|
79 | vertex_program_ref TrollSkinningOneWeight
|
---|
80 | {
|
---|
81 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
82 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
83 | param_named_auto lightPos1 light_position 0
|
---|
84 | param_named_auto lightPos2 light_position 1
|
---|
85 | param_named_auto cameraPos camera_position
|
---|
86 | }
|
---|
87 | fragment_program_ref TrollPS
|
---|
88 | {
|
---|
89 | param_named_auto lightRange1 light_attenuation 0
|
---|
90 | param_named_auto lightPower1 light_power 0
|
---|
91 | param_named_auto lightColor1 light_diffuse_colour 0
|
---|
92 | param_named_auto lightRange2 light_attenuation 1
|
---|
93 | param_named_auto lightPower2 light_power 1
|
---|
94 | param_named_auto lightColor2 light_diffuse_colour 1
|
---|
95 | param_named specularity float 200
|
---|
96 | param_named albedo float 0.1
|
---|
97 | param_named specularColor float4 0.0016 0.0015 0.001 0
|
---|
98 | }
|
---|
99 | texture_unit basetexture
|
---|
100 | {
|
---|
101 | }
|
---|
102 | texture_unit bumptexture
|
---|
103 | {
|
---|
104 | }
|
---|
105 | }
|
---|
106 | }
|
---|
107 | }
|
---|
108 | material phong2 : trollBase
|
---|
109 | {
|
---|
110 | technique maintechnique
|
---|
111 | {
|
---|
112 | pass mainpass
|
---|
113 | {
|
---|
114 | texture_unit basetexture
|
---|
115 | {
|
---|
116 | texture eyeball.jpg
|
---|
117 | }
|
---|
118 | }
|
---|
119 | }
|
---|
120 | }
|
---|
121 | material phong4 : trollBase
|
---|
122 | {
|
---|
123 | technique maintechnique
|
---|
124 | {
|
---|
125 | pass mainpass
|
---|
126 | {
|
---|
127 | texture_unit basetexture
|
---|
128 | {
|
---|
129 | texture trollbody.png
|
---|
130 | }
|
---|
131 | texture_unit bumptexture
|
---|
132 | {
|
---|
133 | texture trollbodybump.png
|
---|
134 | }
|
---|
135 | }
|
---|
136 | }
|
---|
137 | }
|
---|
138 | material phong1 : trollBase
|
---|
139 | {
|
---|
140 | technique maintechnique
|
---|
141 | {
|
---|
142 | pass mainpass
|
---|
143 | {
|
---|
144 | texture_unit basetexture
|
---|
145 | {
|
---|
146 | texture trollhead.png
|
---|
147 | }
|
---|
148 | texture_unit bumptexture
|
---|
149 | {
|
---|
150 | texture trollheadbump.png
|
---|
151 | }
|
---|
152 | }
|
---|
153 | }
|
---|
154 | }
|
---|
155 |
|
---|
156 | vertex_program GTP/Troll/Mace_VS hlsl
|
---|
157 | {
|
---|
158 | source sword.hlsl
|
---|
159 | entry_point Sword_VS
|
---|
160 | target vs_2_0
|
---|
161 | }
|
---|
162 | fragment_program GTP/Troll/Mace_PS hlsl
|
---|
163 | {
|
---|
164 | source sword.hlsl
|
---|
165 | entry_point Sword_Handle_PS
|
---|
166 | target ps_3_0
|
---|
167 | }
|
---|
168 |
|
---|
169 | material TrollMace
|
---|
170 | {
|
---|
171 | technique
|
---|
172 | {
|
---|
173 | pass
|
---|
174 | {
|
---|
175 | vertex_program_ref GTP/Troll/Mace_VS
|
---|
176 | {
|
---|
177 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
178 | param_named_auto World world_matrix
|
---|
179 | param_named_auto WorldI inverse_world_matrix
|
---|
180 | param_named_auto wCamPos camera_position
|
---|
181 | }
|
---|
182 | fragment_program_ref GTP/Troll/Mace_PS
|
---|
183 | {
|
---|
184 | param_named_auto wLightPos1 light_position 0
|
---|
185 | // param_named_auto wLightPos2 light_position 1
|
---|
186 | param_named_auto lightRange1 light_attenuation 0
|
---|
187 | // param_named_auto lightRange2 light_attenuation 1
|
---|
188 | param_named_auto lightPower1 light_power 0
|
---|
189 | // param_named_auto lightPower2 light_power 1
|
---|
190 | param_named_auto lightColor1 light_diffuse_colour 0
|
---|
191 | // param_named_auto lightColor2 light_diffuse_colour 1
|
---|
192 | param_named specularity float 100
|
---|
193 | param_named specularColor float4 0.05 0.05 0.05 0.05
|
---|
194 | }
|
---|
195 | texture_unit
|
---|
196 | {
|
---|
197 | texture trollmace.jpg
|
---|
198 | }
|
---|
199 | }
|
---|
200 | }
|
---|
201 | }
|
---|
202 |
|
---|
203 |
|
---|