1 | vertex_program PhongViewSpaceVS hlsl
|
---|
2 | {
|
---|
3 | source GameTools_Phong.hlsl
|
---|
4 | entry_point PhongViewSpaceVS
|
---|
5 | target vs_2_0
|
---|
6 | }
|
---|
7 |
|
---|
8 | fragment_program TexturedPhongPS hlsl
|
---|
9 | {
|
---|
10 | source GameTools_Phong.hlsl
|
---|
11 | entry_point PhongTexturedPS
|
---|
12 | target ps_3_0
|
---|
13 | }
|
---|
14 |
|
---|
15 | material Difflab/TexturedPhong
|
---|
16 | {
|
---|
17 |
|
---|
18 | technique 0
|
---|
19 | {
|
---|
20 |
|
---|
21 | pass 0
|
---|
22 | {
|
---|
23 |
|
---|
24 | vertex_program_ref PhongViewSpaceVS
|
---|
25 | {
|
---|
26 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
27 | param_named_auto worldView world_matrix
|
---|
28 | param_named_auto worldViewIT inverse_transpose_world_matrix
|
---|
29 | }
|
---|
30 | fragment_program_ref TexturedPhongPS
|
---|
31 | {
|
---|
32 | param_named_auto cameraPos camera_position
|
---|
33 |
|
---|
34 | param_named_auto worldViewIT inverse_transpose_worldview_matrix
|
---|
35 |
|
---|
36 | param_named_auto lightcol1 light_diffuse_colour 0
|
---|
37 | param_named_auto lightcol2 light_diffuse_colour 1
|
---|
38 | param_named_auto lightcol3 light_diffuse_colour 2
|
---|
39 | param_named_auto lightcol4 light_diffuse_colour 3
|
---|
40 | param_named_auto lightcol5 light_diffuse_colour 4
|
---|
41 | param_named_auto lightcol6 light_diffuse_colour 5
|
---|
42 | param_named_auto lightcol7 light_diffuse_colour 6
|
---|
43 | param_named_auto lightcol8 light_diffuse_colour 7
|
---|
44 |
|
---|
45 | param_named_auto lightpos1 light_position 0
|
---|
46 | param_named_auto lightpos2 light_position 1
|
---|
47 | param_named_auto lightpos3 light_position 2
|
---|
48 | param_named_auto lightpos4 light_position 3
|
---|
49 | param_named_auto lightpos5 light_position 4
|
---|
50 | param_named_auto lightpos6 light_position 5
|
---|
51 | param_named_auto lightpos7 light_position 6
|
---|
52 | param_named_auto lightpos8 light_position 7
|
---|
53 |
|
---|
54 | param_named_auto lightdir1 light_direction 0
|
---|
55 | param_named_auto lightdir2 light_direction 1
|
---|
56 | param_named_auto lightdir3 light_direction 2
|
---|
57 | param_named_auto lightdir4 light_direction 3
|
---|
58 | param_named_auto lightdir5 light_direction 4
|
---|
59 | param_named_auto lightdir6 light_direction 5
|
---|
60 | param_named_auto lightdir7 light_direction 6
|
---|
61 | param_named_auto lightdir8 light_direction 7
|
---|
62 |
|
---|
63 | param_named_auto lightscale1 light_power 0
|
---|
64 | param_named_auto lightscale2 light_power 1
|
---|
65 | param_named_auto lightscale3 light_power 2
|
---|
66 | param_named_auto lightscale4 light_power 3
|
---|
67 | param_named_auto lightscale5 light_power 4
|
---|
68 | param_named_auto lightscale6 light_power 5
|
---|
69 | param_named_auto lightscale7 light_power 6
|
---|
70 | param_named_auto lightscale8 light_power 7
|
---|
71 |
|
---|
72 | param_named_auto ambientLight ambient_light_colour
|
---|
73 |
|
---|
74 | param_named shininess float 20
|
---|
75 | param_named ambient float4 0.2 0.2 0.2 1
|
---|
76 | param_named diffuse float4 0.5 0.5 0.5 1
|
---|
77 | param_named specular float4 1 1 1 1
|
---|
78 | }
|
---|
79 | texture_unit 0
|
---|
80 | {
|
---|
81 |
|
---|
82 | }
|
---|
83 |
|
---|
84 | }
|
---|
85 | }
|
---|
86 | }
|
---|
87 |
|
---|
88 | material screen
|
---|
89 | {
|
---|
90 | technique
|
---|
91 | {
|
---|
92 | pass
|
---|
93 | {
|
---|
94 |
|
---|
95 |
|
---|
96 | cull_hardware none
|
---|
97 | lighting off
|
---|
98 | ambient 0 0 0 1
|
---|
99 | diffuse 0 0 0 1
|
---|
100 | specular 0 0 0 0
|
---|
101 | emissive 0 0 0
|
---|
102 | texture_unit
|
---|
103 | {
|
---|
104 | texture screen.jpg
|
---|
105 | }
|
---|
106 | }
|
---|
107 | }
|
---|
108 | }
|
---|
109 | material screenborder
|
---|
110 | {
|
---|
111 | technique
|
---|
112 | {
|
---|
113 | pass
|
---|
114 | {
|
---|
115 | IllumTechniques
|
---|
116 | {
|
---|
117 |
|
---|
118 | // RenderTechnique CausticReciever
|
---|
119 | // {
|
---|
120 | // max_caster_count 1
|
---|
121 | // }
|
---|
122 | RenderTechnique DepthShadowReciever
|
---|
123 | {
|
---|
124 | max_light_count 3
|
---|
125 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
126 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
127 | set_light_view true
|
---|
128 | set_light_farplane true
|
---|
129 | light_viewproj_param_name LightViewProj
|
---|
130 | light_view_param_name LightView
|
---|
131 | light_farplane_param_name lightFarPlane
|
---|
132 | world_view_proj_param_name WorldViewProj
|
---|
133 | world_param_name World
|
---|
134 | }
|
---|
135 | }
|
---|
136 |
|
---|
137 | ambient 0.37606 0.37606 0.37606 1
|
---|
138 | diffuse 0.37606 0.37606 0.37606 1
|
---|
139 | specular 0 0 0 0
|
---|
140 | emissive 0 0 0
|
---|
141 |
|
---|
142 | }
|
---|
143 | }
|
---|
144 | }
|
---|
145 | material whitebackground : Difflab/TexturedPhong
|
---|
146 | {
|
---|
147 | technique
|
---|
148 | {
|
---|
149 | pass
|
---|
150 | {
|
---|
151 | IllumTechniques
|
---|
152 | {
|
---|
153 |
|
---|
154 | // RenderTechnique CausticReciever
|
---|
155 | // {
|
---|
156 | // max_caster_count 1
|
---|
157 | // }
|
---|
158 | RenderTechnique DepthShadowReciever
|
---|
159 | {
|
---|
160 | max_light_count 3
|
---|
161 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
162 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
163 | set_light_view true
|
---|
164 | set_light_farplane true
|
---|
165 | light_viewproj_param_name LightViewProj
|
---|
166 | light_view_param_name LightView
|
---|
167 | light_farplane_param_name lightFarPlane
|
---|
168 | world_view_proj_param_name WorldViewProj
|
---|
169 | world_param_name World
|
---|
170 | }
|
---|
171 | }
|
---|
172 | fragment_program_ref
|
---|
173 | {
|
---|
174 | param_named shininess float 0
|
---|
175 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
176 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
177 | param_named specular float4 0 0 0 0
|
---|
178 | }
|
---|
179 | cull_hardware none
|
---|
180 | }
|
---|
181 | }
|
---|
182 | }
|
---|
183 | material laborceil
|
---|
184 | {
|
---|
185 | technique
|
---|
186 | {
|
---|
187 | pass
|
---|
188 | {
|
---|
189 |
|
---|
190 | lighting off
|
---|
191 | ambient 0 0 0 1
|
---|
192 | diffuse 0 0 0 1
|
---|
193 | specular 0 0 0 0
|
---|
194 | emissive 0 0 0
|
---|
195 | texture_unit
|
---|
196 | {
|
---|
197 | texture laborwall.jpg
|
---|
198 | }
|
---|
199 | }
|
---|
200 | }
|
---|
201 | }
|
---|
202 | material laborwall : Difflab/TexturedPhong
|
---|
203 | {
|
---|
204 | technique 0
|
---|
205 | {
|
---|
206 | pass 0
|
---|
207 | {
|
---|
208 | IllumTechniques
|
---|
209 | {
|
---|
210 |
|
---|
211 | //RenderTechnique CausticReciever
|
---|
212 | //{
|
---|
213 | // max_caster_count 1
|
---|
214 | //}
|
---|
215 | RenderTechnique DepthShadowReciever
|
---|
216 | {
|
---|
217 | max_light_count 3
|
---|
218 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
219 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
220 | set_light_view true
|
---|
221 | set_light_farplane true
|
---|
222 | light_viewproj_param_name LightViewProj
|
---|
223 | light_view_param_name LightView
|
---|
224 | light_farplane_param_name lightFarPlane
|
---|
225 | world_view_proj_param_name WorldViewProj
|
---|
226 | world_param_name World
|
---|
227 | }
|
---|
228 | }
|
---|
229 | fragment_program_ref
|
---|
230 | {
|
---|
231 | param_named shininess float 0
|
---|
232 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
233 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
234 | param_named specular float4 0 0 0 0
|
---|
235 | }
|
---|
236 |
|
---|
237 | texture_unit 0
|
---|
238 | {
|
---|
239 | texture laborwall.jpg
|
---|
240 | }
|
---|
241 | }
|
---|
242 | }
|
---|
243 | }
|
---|
244 |
|
---|
245 | material lambert6 : Difflab/TexturedPhong
|
---|
246 | {
|
---|
247 | technique 0
|
---|
248 | {
|
---|
249 | pass 0
|
---|
250 | {
|
---|
251 | IllumTechniques
|
---|
252 | {
|
---|
253 |
|
---|
254 | //RenderTechnique CausticReciever
|
---|
255 | //{
|
---|
256 | // max_caster_count 1
|
---|
257 | //}
|
---|
258 | RenderTechnique DepthShadowReciever
|
---|
259 | {
|
---|
260 | max_light_count 3
|
---|
261 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
262 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
263 | set_light_view true
|
---|
264 | set_light_farplane true
|
---|
265 | light_viewproj_param_name LightViewProj
|
---|
266 | light_view_param_name LightView
|
---|
267 | light_farplane_param_name lightFarPlane
|
---|
268 | world_view_proj_param_name WorldViewProj
|
---|
269 | world_param_name World
|
---|
270 | }
|
---|
271 | }
|
---|
272 | fragment_program_ref
|
---|
273 | {
|
---|
274 | param_named shininess float 0
|
---|
275 | param_named ambient float4 1 1 1 1
|
---|
276 | param_named diffuse float4 1 1 1 1
|
---|
277 | param_named specular float4 0 0 0 0
|
---|
278 | }
|
---|
279 |
|
---|
280 | texture_unit 0
|
---|
281 | {
|
---|
282 | texture striped.jpg
|
---|
283 | }
|
---|
284 | }
|
---|
285 | }
|
---|
286 | }
|
---|
287 | material doorlamp
|
---|
288 | {
|
---|
289 | technique
|
---|
290 | {
|
---|
291 | pass
|
---|
292 | {
|
---|
293 | lighting off
|
---|
294 | ambient 0 0 0 1
|
---|
295 | diffuse 0 0 0 1
|
---|
296 | specular 0 0 0 0
|
---|
297 | emissive 0 0 0
|
---|
298 | texture_unit
|
---|
299 | {
|
---|
300 | texture lamp.jpg
|
---|
301 | }
|
---|
302 | }
|
---|
303 | }
|
---|
304 | }
|
---|
305 | material equipt : Difflab/TexturedPhong
|
---|
306 | {
|
---|
307 | technique 0
|
---|
308 | {
|
---|
309 |
|
---|
310 | pass 0
|
---|
311 | {
|
---|
312 | IllumTechniques
|
---|
313 | {
|
---|
314 |
|
---|
315 | //RenderTechnique CausticReciever
|
---|
316 | //{
|
---|
317 | // max_caster_count 1
|
---|
318 | //}
|
---|
319 | RenderTechnique DepthShadowReciever
|
---|
320 | {
|
---|
321 | max_light_count 3
|
---|
322 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
323 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
324 | set_light_view true
|
---|
325 | set_light_farplane true
|
---|
326 | light_viewproj_param_name LightViewProj
|
---|
327 | light_view_param_name LightView
|
---|
328 | light_farplane_param_name lightFarPlane
|
---|
329 | world_view_proj_param_name WorldViewProj
|
---|
330 | world_param_name World
|
---|
331 | }
|
---|
332 | }
|
---|
333 | fragment_program_ref
|
---|
334 | {
|
---|
335 | param_named shininess float 51.418
|
---|
336 | param_named ambient float4 0.1282 0.1282 0.1282 1
|
---|
337 | param_named diffuse float4 0.1282 0.1282 0.1282 1
|
---|
338 | param_named specular float4 1 1 1 1
|
---|
339 | }
|
---|
340 | }
|
---|
341 | }
|
---|
342 | }
|
---|
343 | material bluelamp
|
---|
344 | {
|
---|
345 | technique
|
---|
346 | {
|
---|
347 | pass
|
---|
348 | {
|
---|
349 |
|
---|
350 | lighting off
|
---|
351 | ambient 0.5 0.5 0.5 1
|
---|
352 | diffuse 0.5 0.5 0.5 1
|
---|
353 | specular 0.5 0.5 0.5 20
|
---|
354 | emissive 0 0 0
|
---|
355 | texture_unit
|
---|
356 | {
|
---|
357 | texture bluelamp.jpg
|
---|
358 | }
|
---|
359 | }
|
---|
360 |
|
---|
361 | }
|
---|
362 | }
|
---|