1 | vertex_program GTP/StationDemo/StationBase_VS hlsl |
---|
2 | { |
---|
3 | source StationBase.hlsl |
---|
4 | entry_point StationBase_VS |
---|
5 | target vs_3_0 |
---|
6 | } |
---|
7 | |
---|
8 | fragment_program GTP/StationDemo/StationBase_PS hlsl |
---|
9 | { |
---|
10 | source StationBase.hlsl |
---|
11 | entry_point StationBase_PS |
---|
12 | target ps_3_0 |
---|
13 | flow_control prefer |
---|
14 | } |
---|
15 | |
---|
16 | vertex_program GTP/StationDemo/MorphedSphere_VS hlsl |
---|
17 | { |
---|
18 | source StationBase.hlsl |
---|
19 | entry_point MorphedSphere_VS |
---|
20 | target vs_2_0 |
---|
21 | } |
---|
22 | |
---|
23 | material SpaceStation_Base |
---|
24 | { |
---|
25 | technique main |
---|
26 | { |
---|
27 | pass main |
---|
28 | { |
---|
29 | IllumTechniques |
---|
30 | { |
---|
31 | RenderTechnique PathMap |
---|
32 | { |
---|
33 | new_passes false |
---|
34 | start_tex_id 2 |
---|
35 | } |
---|
36 | RenderTechnique DepthShadowReceiver |
---|
37 | { |
---|
38 | max_light_count 2 |
---|
39 | nearest_from_camera false |
---|
40 | set_light_viewproj true |
---|
41 | set_light_view true |
---|
42 | set_light_farplane true |
---|
43 | bind_to_vertex_shader true |
---|
44 | light_view_param_name LightView |
---|
45 | light_viewproj_param_name LightViewProj |
---|
46 | light_farplane_param_name lightFarPlane |
---|
47 | new_passes false |
---|
48 | start_tex_id 5 |
---|
49 | } |
---|
50 | } |
---|
51 | vertex_program_ref GTP/StationDemo/StationBase_VS |
---|
52 | { |
---|
53 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
54 | param_named_auto World world_matrix |
---|
55 | param_named_auto WorldI inverse_world_matrix |
---|
56 | param_named_auto wCamPos camera_position |
---|
57 | } |
---|
58 | fragment_program_ref GTP/StationDemo/StationBase_PS |
---|
59 | { |
---|
60 | param_named_auto wLightPos1 light_position 0 |
---|
61 | param_named_auto wLightPos2 light_position 1 |
---|
62 | param_named_auto wLightDir1 light_direction 0 |
---|
63 | param_named_auto wLightDir2 light_direction 1 |
---|
64 | param_named_auto lightRange1 light_attenuation 0 |
---|
65 | param_named_auto lightRange2 light_attenuation 1 |
---|
66 | param_named_auto lightPower1 light_power 0 |
---|
67 | param_named_auto lightPower2 light_power 1 |
---|
68 | param_named_auto lightColor1 light_diffuse_colour 0 |
---|
69 | param_named_auto lightColor2 light_diffuse_colour 1 |
---|
70 | param_named specularity float 20 |
---|
71 | param_named specularColor float4 0.2 0.2 0.2 0.2 |
---|
72 | param_named causticReceiver float 0 |
---|
73 | } |
---|
74 | texture_unit color |
---|
75 | { |
---|
76 | } |
---|
77 | texture_unit Obscurances |
---|
78 | { |
---|
79 | } |
---|
80 | texture_unit PM_PRM |
---|
81 | { |
---|
82 | } |
---|
83 | texture_unit PM_weightIndex |
---|
84 | { |
---|
85 | } |
---|
86 | texture_unit PM_ClusterWeight |
---|
87 | { |
---|
88 | } |
---|
89 | texture_unit SM1 |
---|
90 | { |
---|
91 | } |
---|
92 | texture_unit SM2 |
---|
93 | { |
---|
94 | } |
---|
95 | |
---|
96 | } |
---|
97 | } |
---|
98 | } |
---|
99 | |
---|
100 | material SpaceStation_ConnectElem : SpaceStation_Base |
---|
101 | { |
---|
102 | technique main |
---|
103 | { |
---|
104 | pass main |
---|
105 | { |
---|
106 | texture_unit color |
---|
107 | { |
---|
108 | texture cornerUV.jpg |
---|
109 | } |
---|
110 | texture_unit Obscurances |
---|
111 | { |
---|
112 | texture cornerO.bmp |
---|
113 | } |
---|
114 | } |
---|
115 | } |
---|
116 | } |
---|
117 | material SpaceStation_CorridorElem : SpaceStation_Base |
---|
118 | { |
---|
119 | technique main |
---|
120 | { |
---|
121 | pass main |
---|
122 | { |
---|
123 | texture_unit color |
---|
124 | { |
---|
125 | texture elemUV.jpg |
---|
126 | } |
---|
127 | texture_unit Obscurances |
---|
128 | { |
---|
129 | texture elemO.bmp |
---|
130 | } |
---|
131 | } |
---|
132 | } |
---|
133 | } |
---|
134 | material SpaceStation_HallPipes : SpaceStation_Base |
---|
135 | { |
---|
136 | technique main |
---|
137 | { |
---|
138 | pass main |
---|
139 | { |
---|
140 | texture_unit color |
---|
141 | { |
---|
142 | texture pipesUV.jpg |
---|
143 | } |
---|
144 | texture_unit Obscurances |
---|
145 | { |
---|
146 | texture pipesO.bmp |
---|
147 | } |
---|
148 | } |
---|
149 | } |
---|
150 | } |
---|
151 | material SpaceStation_Hall : SpaceStation_Base |
---|
152 | { |
---|
153 | technique main |
---|
154 | { |
---|
155 | pass main |
---|
156 | { |
---|
157 | IllumTechniques |
---|
158 | { |
---|
159 | RenderTechnique CausticReceiver |
---|
160 | { |
---|
161 | max_caster_count 1 |
---|
162 | //bind_distance_map true |
---|
163 | attenuation_var_name causticAttenuationRange |
---|
164 | center_var_name causticCasterCenter |
---|
165 | start_tex_id 7 |
---|
166 | new_passes false |
---|
167 | } |
---|
168 | } |
---|
169 | fragment_program_ref |
---|
170 | { |
---|
171 | param_named causticReceiver float 1 |
---|
172 | } |
---|
173 | texture_unit color |
---|
174 | { |
---|
175 | texture hallUV.jpg |
---|
176 | } |
---|
177 | texture_unit Obscurances |
---|
178 | { |
---|
179 | texture hallO.bmp |
---|
180 | } |
---|
181 | texture_unit CauMap |
---|
182 | { |
---|
183 | } |
---|
184 | } |
---|
185 | } |
---|
186 | } |
---|
187 | material SpaceStation_Room : SpaceStation_Base |
---|
188 | { |
---|
189 | technique main |
---|
190 | { |
---|
191 | pass main |
---|
192 | { |
---|
193 | texture_unit color |
---|
194 | { |
---|
195 | texture roomUV.jpg |
---|
196 | } |
---|
197 | texture_unit Obscurances |
---|
198 | { |
---|
199 | texture roomO.bmp |
---|
200 | } |
---|
201 | } |
---|
202 | } |
---|
203 | } |
---|
204 | |
---|
205 | material GTP/Station/PhotonMap_HitEnv |
---|
206 | { |
---|
207 | technique |
---|
208 | { |
---|
209 | pass |
---|
210 | { |
---|
211 | vertex_program_ref GTP/StationDemo/MorphedSphere_VS |
---|
212 | { |
---|
213 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
214 | param_named_auto World world_matrix |
---|
215 | param_named_auto WorldInv inverse_world_matrix |
---|
216 | param_named_auto t time |
---|
217 | } |
---|
218 | fragment_program_ref GTP/Caustic/PhotonMapHitEnv_PS |
---|
219 | { |
---|
220 | param_named_auto cameraPos camera_position |
---|
221 | param_named lastCenter float3 0 0 0 |
---|
222 | param_named refIndex float 0.65 |
---|
223 | } |
---|
224 | //cubemap of distances |
---|
225 | texture_unit |
---|
226 | { |
---|
227 | filtering none |
---|
228 | } |
---|
229 | } |
---|
230 | } |
---|
231 | } |
---|
232 | |
---|
233 | material GTP/Station/CauCube_PointSprite |
---|
234 | { |
---|
235 | technique |
---|
236 | { |
---|
237 | pass |
---|
238 | { |
---|
239 | cull_hardware none |
---|
240 | scene_blend src_alpha one |
---|
241 | depth_check off |
---|
242 | point_sprites on |
---|
243 | vertex_program_ref GTP/Caustic/CauCube_PointSprite_VS |
---|
244 | { |
---|
245 | param_named_auto WorldView worldview_matrix |
---|
246 | param_named_auto Proj projection_matrix |
---|
247 | param_named CauSpriteSize float 20 |
---|
248 | } |
---|
249 | fragment_program_ref GTP/Caustic/CauCube_PointSprite_PS |
---|
250 | { |
---|
251 | param_named CausticColor float4 1 1 1 0.06 |
---|
252 | } |
---|
253 | texture_unit |
---|
254 | { |
---|
255 | vertex_texture true |
---|
256 | } |
---|
257 | texture_unit |
---|
258 | { |
---|
259 | texture PowerOfPhotonHitTexel.dds |
---|
260 | } |
---|
261 | } |
---|
262 | } |
---|
263 | } |
---|
264 | |
---|
265 | material GTP/Station/CauCube_Triangles |
---|
266 | { |
---|
267 | technique |
---|
268 | { |
---|
269 | pass |
---|
270 | { |
---|
271 | cull_hardware none |
---|
272 | scene_blend one one |
---|
273 | scene_blend_alpha one zero |
---|
274 | depth_write off |
---|
275 | vertex_program_ref GTP/Caustic/CauCube_Triangles_VS |
---|
276 | { |
---|
277 | param_named_auto WorldView worldview_matrix |
---|
278 | param_named_auto Proj projection_matrix |
---|
279 | param_named PhotonMapResolution float 64 |
---|
280 | param_named WorldSize float 0.01 |
---|
281 | } |
---|
282 | fragment_program_ref GTP/Caustic/CauCube_Triangles_PS |
---|
283 | { |
---|
284 | param_named CausticColor float4 0.7 0.7 0.5 1 |
---|
285 | |
---|
286 | } |
---|
287 | texture_unit |
---|
288 | { |
---|
289 | vertex_texture true |
---|
290 | } |
---|
291 | } |
---|
292 | } |
---|
293 | } |
---|
294 | |
---|
295 | vertex_program GTP/StationDemo/MorphedSphereSM_VS hlsl |
---|
296 | { |
---|
297 | source StationBase.hlsl |
---|
298 | entry_point MorphedSphereSM_VS |
---|
299 | target vs_2_0 |
---|
300 | } |
---|
301 | |
---|
302 | fragment_program GTP/StationDemo/MorphedSphereSM_PS hlsl |
---|
303 | { |
---|
304 | source StationBase.hlsl |
---|
305 | entry_point MorphedSphereSM_PS |
---|
306 | target ps_2_0 |
---|
307 | } |
---|
308 | |
---|
309 | |
---|
310 | material SpaceStation_CausticCaster_SM |
---|
311 | { |
---|
312 | technique |
---|
313 | { |
---|
314 | pass |
---|
315 | { |
---|
316 | vertex_program_ref GTP/StationDemo/MorphedSphereSM_VS |
---|
317 | { |
---|
318 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
319 | param_named_auto WorldView worldview_matrix |
---|
320 | param_named_auto t time |
---|
321 | } |
---|
322 | fragment_program_ref GTP/StationDemo/MorphedSphereSM_PS |
---|
323 | { |
---|
324 | param_named_auto farPlane far_clip_distance |
---|
325 | } |
---|
326 | } |
---|
327 | } |
---|
328 | } |
---|
329 | |
---|
330 | vertex_program GTP/StationDemo/MorphedSphereCDepth_VS hlsl |
---|
331 | { |
---|
332 | source StationBase.hlsl |
---|
333 | entry_point MorphedSphereCDepth_VS |
---|
334 | target vs_2_0 |
---|
335 | } |
---|
336 | material SpaceStation_CausticCaster_CDepth |
---|
337 | { |
---|
338 | technique |
---|
339 | { |
---|
340 | pass |
---|
341 | { |
---|
342 | vertex_program_ref GTP/StationDemo/MorphedSphereCDepth_VS |
---|
343 | { |
---|
344 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
345 | param_named_auto WorldView worldview_matrix |
---|
346 | param_named_auto t time |
---|
347 | } |
---|
348 | fragment_program_ref GTP/Basic/CDepth_PS |
---|
349 | { |
---|
350 | param_named_auto farplane far_clip_distance |
---|
351 | } |
---|
352 | } |
---|
353 | } |
---|
354 | } |
---|
355 | |
---|
356 | material SpaceStation_CausticCaster |
---|
357 | { |
---|
358 | technique |
---|
359 | { |
---|
360 | pass |
---|
361 | { |
---|
362 | IllumTechniques |
---|
363 | { |
---|
364 | RenderTechnique Triggers |
---|
365 | { |
---|
366 | ILLUM_TRIGGER_SM_SPOT SpaceStation_CausticCaster_SM |
---|
367 | ILLUM_TRIGGER_CAMERADEPTH SpaceStation_CausticCaster_CDepth |
---|
368 | } |
---|
369 | RenderTechnique ColorCubeMap |
---|
370 | { |
---|
371 | update_interval 1 |
---|
372 | resolution 256 |
---|
373 | update_all_face true |
---|
374 | } |
---|
375 | RenderTechnique DistanceCubeMap |
---|
376 | { |
---|
377 | resolution 512 |
---|
378 | update_interval 0 |
---|
379 | start_frame 0 |
---|
380 | update_all_face true |
---|
381 | } |
---|
382 | RenderTechnique CausticCaster |
---|
383 | { |
---|
384 | attenuation 5.5 |
---|
385 | update_interval 1 |
---|
386 | update_all_face true |
---|
387 | photonmap_resolution 128 |
---|
388 | caustic_cubemap_resolution 256 |
---|
389 | photon_map_material GTP/Station/PhotonMap_HitEnv |
---|
390 | caustic_map_material GTP/Station/CauCube_PointSprite |
---|
391 | //caustic_map_material GTP/Station/CauCube_Triangles |
---|
392 | //use_triangles true |
---|
393 | //blur_caustic_cubemap true |
---|
394 | } |
---|
395 | |
---|
396 | } |
---|
397 | vertex_program_ref GTP/StationDemo/MorphedSphere_VS |
---|
398 | { |
---|
399 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
400 | param_named_auto World world_matrix |
---|
401 | param_named_auto WorldInv inverse_world_matrix |
---|
402 | param_named_auto t time |
---|
403 | } |
---|
404 | fragment_program_ref GTP/EnvMap/Localized_Refraction_PS |
---|
405 | { |
---|
406 | param_named_auto cameraPos camera_position |
---|
407 | param_named lastCenter float3 0 0 0 |
---|
408 | param_named sFresnel float 0.1 |
---|
409 | param_named sRefraction float 0.65 |
---|
410 | |
---|
411 | } |
---|
412 | //Cube map for reflections and refractions |
---|
413 | texture_unit |
---|
414 | { |
---|
415 | |
---|
416 | } |
---|
417 | //Cube map of distances |
---|
418 | texture_unit |
---|
419 | { |
---|
420 | filtering none |
---|
421 | } |
---|
422 | } |
---|
423 | } |
---|
424 | } |
---|
425 | |
---|
426 | |
---|
427 | material Station/redbutton |
---|
428 | { |
---|
429 | technique |
---|
430 | { |
---|
431 | pass |
---|
432 | { |
---|
433 | ambient 0 0 0 1 |
---|
434 | diffuse 1 0.2 0.2 1 |
---|
435 | specular 0 0 0 1 |
---|
436 | emissive 0.1 0.01 0.01 1 |
---|
437 | } |
---|
438 | } |
---|
439 | } |
---|
440 | |
---|
441 | material Station/bluebutton |
---|
442 | { |
---|
443 | technique |
---|
444 | { |
---|
445 | pass |
---|
446 | { |
---|
447 | ambient 0 0 0 1 |
---|
448 | diffuse 0.2 0.2 1 1 |
---|
449 | specular 0 0 0 1 |
---|
450 | emissive 0.01 0.01 0.1 1 |
---|
451 | } |
---|
452 | } |
---|
453 | } |
---|
454 | |
---|
455 | |
---|
456 | |
---|
457 | |
---|
458 | |
---|
459 | |
---|