1 | vertex_program GTP/MultiBounce/MultiBounce_VS hlsl
|
---|
2 | {
|
---|
3 | source GTPMultipleReflection.hlsl
|
---|
4 | entry_point SpecularReflectionVS
|
---|
5 | target vs_3_0
|
---|
6 | }
|
---|
7 |
|
---|
8 | //fragment_program GTP/MultiBounce/SingleReflection_PS hlsl
|
---|
9 | //{
|
---|
10 | // source GTPMultipleReflection.hlsl
|
---|
11 | // entry_point SingleReflectionPS
|
---|
12 | // target ps_3_0
|
---|
13 | // flow_control prefer
|
---|
14 | //}
|
---|
15 |
|
---|
16 | fragment_program GTP/MultiBounce/MultipleReflection_PS hlsl
|
---|
17 | {
|
---|
18 | source GTPMultipleReflection.hlsl
|
---|
19 | entry_point MultipleReflectionPS
|
---|
20 | target ps_3_0
|
---|
21 | flow_control prefer
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | material GTP/MultiBounce/Refractor
|
---|
26 | {
|
---|
27 | technique
|
---|
28 | {
|
---|
29 | pass
|
---|
30 | {
|
---|
31 | //cull_hardware none
|
---|
32 | IllumTechniques
|
---|
33 | {
|
---|
34 | RenderTechnique ColorCubeMap
|
---|
35 | {
|
---|
36 | resolution 1024
|
---|
37 | update_interval 1
|
---|
38 | distance_calc false
|
---|
39 | face_angle_calc false
|
---|
40 | update_all_face true
|
---|
41 |
|
---|
42 | }
|
---|
43 | RenderTechnique DistanceCubeMap
|
---|
44 | {
|
---|
45 | resolution 1024
|
---|
46 | update_interval 1
|
---|
47 | distance_calc false
|
---|
48 | face_angle_calc false
|
---|
49 | update_all_face true
|
---|
50 | }
|
---|
51 | RenderTechnique ColorCubeMap
|
---|
52 | {
|
---|
53 | resolution 1024
|
---|
54 | layer 1
|
---|
55 | texture_unit_id 2
|
---|
56 | update_interval 1
|
---|
57 | distance_calc false
|
---|
58 | face_angle_calc false
|
---|
59 | update_all_face true
|
---|
60 | render_env false
|
---|
61 | render_self true
|
---|
62 | self_material GTP/MultiBounce/NormalDistanceCCW
|
---|
63 | }
|
---|
64 | RenderTechnique ColorCubeMap
|
---|
65 | {
|
---|
66 | resolution 1024
|
---|
67 | layer 2
|
---|
68 | texture_unit_id 3
|
---|
69 | update_interval 1
|
---|
70 | distance_calc false
|
---|
71 | face_angle_calc false
|
---|
72 | update_all_face true
|
---|
73 | render_env false
|
---|
74 | render_self true
|
---|
75 | self_material GTP/MultiBounce/NormalDistanceCW
|
---|
76 | }
|
---|
77 | }
|
---|
78 | vertex_program_ref GTP/MultiBounce/MultiBounce_VS
|
---|
79 | {
|
---|
80 | param_named_auto WorldViewProj transpose_worldviewproj_matrix
|
---|
81 | param_named_auto World transpose_world_matrix
|
---|
82 | param_named_auto WorldIT inverse_world_matrix
|
---|
83 | param_named_auto eyePos camera_position
|
---|
84 | }
|
---|
85 | fragment_program_ref GTP/MultiBounce/MultipleReflection_PS
|
---|
86 | {
|
---|
87 | param_named refIndex float 0.77
|
---|
88 | param_named Fp0 float 0.1
|
---|
89 | }
|
---|
90 |
|
---|
91 | //Cube map of environment
|
---|
92 | texture_unit
|
---|
93 | {
|
---|
94 | //filtering none
|
---|
95 | }
|
---|
96 | //Cube map of environment distances
|
---|
97 | texture_unit
|
---|
98 | {
|
---|
99 | filtering none
|
---|
100 | }
|
---|
101 |
|
---|
102 | //Cube map of reflective object's normals and distances CCW
|
---|
103 | texture_unit
|
---|
104 | {
|
---|
105 | filtering none
|
---|
106 | }
|
---|
107 | //Cube map of reflective object's normals and distances CW
|
---|
108 | texture_unit
|
---|
109 | {
|
---|
110 | filtering none
|
---|
111 | }
|
---|
112 | }
|
---|
113 | }
|
---|
114 | }
|
---|
115 |
|
---|
116 |
|
---|
117 | //fragment_program GTP/MultiBounce/Refraction_PS hlsl
|
---|
118 | //{
|
---|
119 | // source GTPMultipleReflection.hlsl
|
---|
120 | // entry_point MultipleRefractionPS
|
---|
121 | // target ps_3_0
|
---|
122 | // flow_control prefer
|
---|
123 | //}
|
---|
124 |
|
---|
125 | material GTP/MultiBounce/Refractor_0
|
---|
126 | {
|
---|
127 | technique
|
---|
128 | {
|
---|
129 | pass
|
---|
130 | {
|
---|
131 | //cull_hardware none
|
---|
132 | IllumTechniques
|
---|
133 | {
|
---|
134 | RenderTechnique ColorCubeMap
|
---|
135 | {
|
---|
136 | resolution 1024
|
---|
137 | update_interval 1
|
---|
138 | distance_calc false
|
---|
139 | face_angle_calc false
|
---|
140 | update_all_face true
|
---|
141 |
|
---|
142 | }
|
---|
143 | RenderTechnique DistanceCubeMap
|
---|
144 | {
|
---|
145 | resolution 1024
|
---|
146 | update_interval 1
|
---|
147 | distance_calc false
|
---|
148 | face_angle_calc false
|
---|
149 | update_all_face true
|
---|
150 | }
|
---|
151 | RenderTechnique ColorCubeMap
|
---|
152 | {
|
---|
153 | resolution 1024
|
---|
154 | layer 1
|
---|
155 | texture_unit_id 2
|
---|
156 | update_interval 1
|
---|
157 | distance_calc false
|
---|
158 | face_angle_calc false
|
---|
159 | update_all_face true
|
---|
160 | render_env false
|
---|
161 | render_self true
|
---|
162 | self_material GTP/MultiBounce/NormalDistanceCCW
|
---|
163 | }
|
---|
164 | RenderTechnique ColorCubeMap
|
---|
165 | {
|
---|
166 | resolution 1024
|
---|
167 | layer 2
|
---|
168 | texture_unit_id 3
|
---|
169 | update_interval 1
|
---|
170 | distance_calc false
|
---|
171 | face_angle_calc false
|
---|
172 | update_all_face true
|
---|
173 | render_env false
|
---|
174 | render_self true
|
---|
175 | self_material GTP/MultiBounce/NormalDistanceCW
|
---|
176 | }
|
---|
177 | }
|
---|
178 | vertex_program_ref GTP/Basic/Shaded_CPos_VS
|
---|
179 | {
|
---|
180 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
181 | param_named_auto World world_matrix
|
---|
182 | param_named_auto WorldInv inverse_world_matrix
|
---|
183 | }
|
---|
184 | fragment_program_ref GTP/MultiBounce/Refraction_PS
|
---|
185 | {
|
---|
186 | param_named_auto cameraPos camera_position
|
---|
187 | param_named refIndex float 0.77
|
---|
188 | param_named sFresnel float 0.04
|
---|
189 | }
|
---|
190 |
|
---|
191 | //Cube map of environment
|
---|
192 | texture_unit
|
---|
193 | {
|
---|
194 | //filtering none
|
---|
195 | }
|
---|
196 | //Cube map of environment distances
|
---|
197 | texture_unit
|
---|
198 | {
|
---|
199 | filtering none
|
---|
200 | }
|
---|
201 |
|
---|
202 | //Cube map of reflective object's normals and distances CCW
|
---|
203 | texture_unit
|
---|
204 | {
|
---|
205 | filtering none
|
---|
206 | }
|
---|
207 | //Cube map of reflective object's normals and distances CW
|
---|
208 | texture_unit
|
---|
209 | {
|
---|
210 | filtering none
|
---|
211 | }
|
---|
212 | }
|
---|
213 | }
|
---|
214 | } |
---|