1 | fragment_program GTP/Station/Large_Depth_Illum_PS hlsl
|
---|
2 | {
|
---|
3 | source Station_HPS.hlsl
|
---|
4 | entry_point HPS_Large_Depth_Illum_PS
|
---|
5 | target ps_3_0
|
---|
6 | }
|
---|
7 |
|
---|
8 | material GTP/Station/Smoke_L_Depth_Illum
|
---|
9 | {
|
---|
10 | technique
|
---|
11 | {
|
---|
12 | pass
|
---|
13 | {
|
---|
14 | IllumTechniques
|
---|
15 | {
|
---|
16 | RenderTechnique HPS
|
---|
17 | {
|
---|
18 | particle_script GTP/Station/Smoke_Little
|
---|
19 | perspective false
|
---|
20 | vparam_radius baseRadius
|
---|
21 | update_interval 1
|
---|
22 | }
|
---|
23 | RenderTechnique SphericalBillboard
|
---|
24 | {
|
---|
25 | texture_unit_id 1
|
---|
26 | }
|
---|
27 | RenderTechnique IllumVolume
|
---|
28 | {
|
---|
29 | material GTP/Station/Smoke_IllumVolume
|
---|
30 | update_interval 1
|
---|
31 | texture_unit_id 2
|
---|
32 | resolution 128
|
---|
33 | lightmatrix_param_name lightViewProj
|
---|
34 | }
|
---|
35 | }
|
---|
36 | depth_check off
|
---|
37 | depth_write off
|
---|
38 | scene_blend alpha_blend
|
---|
39 | vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
|
---|
40 | {
|
---|
41 | param_named_auto worldView worldview_matrix
|
---|
42 | param_named_auto worldViewInv inverse_worldview_matrix
|
---|
43 | param_named_auto Proj projection_matrix
|
---|
44 | param_named_auto width viewport_width
|
---|
45 | param_named_auto height viewport_height
|
---|
46 | param_named baseRadius float 1
|
---|
47 | }
|
---|
48 | fragment_program_ref GTP/Station/Large_Depth_Illum_PS
|
---|
49 | {
|
---|
50 | param_named_auto nearplane near_clip_distance
|
---|
51 | }
|
---|
52 | //impostor texture
|
---|
53 | texture_unit
|
---|
54 | {
|
---|
55 | //filtering none
|
---|
56 | }
|
---|
57 | //scene depth texture
|
---|
58 | texture_unit
|
---|
59 | {
|
---|
60 | filtering none
|
---|
61 | }
|
---|
62 | //Ilumination volume
|
---|
63 | texture_unit
|
---|
64 | {
|
---|
65 | //filtering none
|
---|
66 | }
|
---|
67 | }
|
---|
68 | }
|
---|
69 | }
|
---|
70 |
|
---|
71 | material GTP/Station/Smoke_IllumVolume
|
---|
72 | {
|
---|
73 | technique
|
---|
74 | {
|
---|
75 | pass
|
---|
76 | {
|
---|
77 | cull_hardware none
|
---|
78 | cull_software none
|
---|
79 | lighting off
|
---|
80 | scene_blend zero one_minus_src_colour
|
---|
81 | depth_write off
|
---|
82 |
|
---|
83 | vertex_program_ref GTP/HPS/IllumVolume_VS
|
---|
84 | {
|
---|
85 | param_named_auto worldView worldview_matrix
|
---|
86 | param_named_auto Proj projection_matrix
|
---|
87 | }
|
---|
88 | fragment_program_ref GTP/HPS/IllumVolume_PS
|
---|
89 | {
|
---|
90 | //param_named density float 0.005
|
---|
91 | param_named density float 0.1
|
---|
92 | }
|
---|
93 | texture_unit
|
---|
94 | {
|
---|
95 | texture pamacs.dds
|
---|
96 | }
|
---|
97 | }
|
---|
98 | }
|
---|
99 | } |
---|