1 | material Flare
|
---|
2 | {
|
---|
3 | technique
|
---|
4 | {
|
---|
5 | pass
|
---|
6 | {
|
---|
7 | //cull_hardware none
|
---|
8 | lighting off
|
---|
9 | scene_blend add
|
---|
10 | //scene_blend_op add
|
---|
11 | //scene_blend_op_alpha add
|
---|
12 | //scene_blend_alpha add
|
---|
13 | //depth_check off
|
---|
14 | depth_write off
|
---|
15 |
|
---|
16 | texture_unit
|
---|
17 | {
|
---|
18 | texture flare.png
|
---|
19 | }
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | material Examples/EveningSkyBox
|
---|
26 | {
|
---|
27 | technique
|
---|
28 | {
|
---|
29 | pass
|
---|
30 | {
|
---|
31 | lighting off
|
---|
32 | depth_write off
|
---|
33 |
|
---|
34 | texture_unit
|
---|
35 | {
|
---|
36 | cubic_texture stormy.jpg separateUV
|
---|
37 | tex_address_mode clamp
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
41 | }
|
---|
42 |
|
---|
43 | material Examples/MorningSkyBox
|
---|
44 | {
|
---|
45 | technique
|
---|
46 | {
|
---|
47 | pass
|
---|
48 | {
|
---|
49 | lighting off
|
---|
50 | depth_write off
|
---|
51 |
|
---|
52 | texture_unit
|
---|
53 | {
|
---|
54 | cubic_texture morning.jpg separateUV
|
---|
55 | tex_address_mode clamp
|
---|
56 | }
|
---|
57 | }
|
---|
58 | }
|
---|
59 | }
|
---|
60 |
|
---|
61 | material GameTools/Rockwall
|
---|
62 | {
|
---|
63 | technique
|
---|
64 | {
|
---|
65 | pass
|
---|
66 | {
|
---|
67 | lighting off
|
---|
68 | texture_unit
|
---|
69 | {
|
---|
70 | texture rockwall.tga
|
---|
71 | //env_map cubic_normal
|
---|
72 | //vertex_texture true
|
---|
73 | }
|
---|
74 | }
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 | material GameTools/Standard
|
---|
79 | {
|
---|
80 | technique
|
---|
81 | {
|
---|
82 | pass
|
---|
83 | {
|
---|
84 | ambient 0.1 0.11 0.15
|
---|
85 | diffuse 0.8 0.9 1.0
|
---|
86 | }
|
---|
87 | }
|
---|
88 | }
|
---|
89 |
|
---|
90 | material TestPlane
|
---|
91 | {
|
---|
92 | technique
|
---|
93 | {
|
---|
94 | pass
|
---|
95 | {
|
---|
96 | ambient 0.3 0.3 0.4
|
---|
97 | diffuse 0.9 0.9 1.0
|
---|
98 | //lighting off
|
---|
99 | IllumTechniques
|
---|
100 | {
|
---|
101 | //RenderTechnique CausticReciever
|
---|
102 | //{
|
---|
103 | // max_caster_count 10
|
---|
104 | //}
|
---|
105 | RenderTechnique DepthShadowReciever
|
---|
106 | {
|
---|
107 | }
|
---|
108 | }
|
---|
109 | }
|
---|
110 | }
|
---|
111 | }
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 | material GameTools/UVShader
|
---|
116 | {
|
---|
117 | technique
|
---|
118 | {
|
---|
119 | pass
|
---|
120 | {
|
---|
121 | vertex_program_ref GameTools/UV_VS
|
---|
122 | {
|
---|
123 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
124 | }
|
---|
125 | fragment_program_ref GameTools/UV_PS
|
---|
126 | {
|
---|
127 | param_named_auto ID custom 0
|
---|
128 | }
|
---|
129 |
|
---|
130 |
|
---|
131 | }
|
---|
132 | }
|
---|
133 | }
|
---|
134 |
|
---|
135 | material GameTools/DistanceShader
|
---|
136 | {
|
---|
137 |
|
---|
138 | technique
|
---|
139 | {
|
---|
140 | pass
|
---|
141 | {
|
---|
142 | vertex_program_ref GameTools/DistanceVS
|
---|
143 | {
|
---|
144 | param_named_auto worldView worldview_matrix
|
---|
145 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
146 | }
|
---|
147 | fragment_program_ref GameTools/DistancePS
|
---|
148 | {
|
---|
149 |
|
---|
150 | }
|
---|
151 |
|
---|
152 | }
|
---|
153 | }
|
---|
154 | }
|
---|
155 |
|
---|
156 | material GameTools/SceneCameraDepthShader
|
---|
157 | {
|
---|
158 |
|
---|
159 | technique
|
---|
160 | {
|
---|
161 | scene_blend none
|
---|
162 |
|
---|
163 | pass
|
---|
164 | {
|
---|
165 | vertex_program_ref GameTools/SceneCameraDepthVS
|
---|
166 | {
|
---|
167 | param_named_auto worldView worldview_matrix
|
---|
168 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
169 | param_named_auto farplane far_clip_distance
|
---|
170 | }
|
---|
171 | fragment_program_ref GameTools/SceneDepthPS
|
---|
172 | {
|
---|
173 |
|
---|
174 | }
|
---|
175 |
|
---|
176 | }
|
---|
177 | }
|
---|
178 | }
|
---|
179 |
|
---|
180 | material GameTools/FocusingShader
|
---|
181 | {
|
---|
182 |
|
---|
183 | technique
|
---|
184 | {
|
---|
185 | scene_blend none
|
---|
186 |
|
---|
187 | pass
|
---|
188 | {
|
---|
189 | vertex_program_ref GameTools/FocusingVS
|
---|
190 | {
|
---|
191 | param_named_auto world world_matrix
|
---|
192 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
193 | param_named lightTransform matrix4x4
|
---|
194 | }
|
---|
195 | fragment_program_ref GameTools/FocusingPS
|
---|
196 | {
|
---|
197 |
|
---|
198 | }
|
---|
199 |
|
---|
200 | }
|
---|
201 | }
|
---|
202 | }
|
---|
203 |
|
---|
204 | material GameTools/ShadowMapDepth
|
---|
205 | {
|
---|
206 |
|
---|
207 | technique
|
---|
208 | {
|
---|
209 | scene_blend none
|
---|
210 |
|
---|
211 | pass
|
---|
212 | {
|
---|
213 | cull_hardware anticlockwise
|
---|
214 | //cull_hardware none
|
---|
215 |
|
---|
216 | vertex_program_ref GameTools/ShadowMap/DepthVS
|
---|
217 | {
|
---|
218 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
219 | }
|
---|
220 | fragment_program_ref GameTools/ShadowMap/DepthPS
|
---|
221 | {
|
---|
222 |
|
---|
223 | }
|
---|
224 |
|
---|
225 | }
|
---|
226 | }
|
---|
227 | }
|
---|
228 |
|
---|
229 | material GameTools/ShadowMapDistance
|
---|
230 | {
|
---|
231 |
|
---|
232 | technique
|
---|
233 | {
|
---|
234 | scene_blend none
|
---|
235 |
|
---|
236 | pass
|
---|
237 | {
|
---|
238 | cull_hardware anticlockwise
|
---|
239 | //cull_hardware none
|
---|
240 |
|
---|
241 | vertex_program_ref GameTools/ShadowMap/DistVS
|
---|
242 | {
|
---|
243 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
244 | param_named_auto worldView worldview_matrix
|
---|
245 | }
|
---|
246 | fragment_program_ref GameTools/ShadowMap/DistPS
|
---|
247 | {
|
---|
248 | param_named_auto farPlane far_clip_distance
|
---|
249 | }
|
---|
250 |
|
---|
251 | }
|
---|
252 | }
|
---|
253 | }
|
---|
254 |
|
---|
255 |
|
---|
256 | material GameTools/Blur
|
---|
257 | {
|
---|
258 |
|
---|
259 | technique
|
---|
260 | {
|
---|
261 |
|
---|
262 | pass
|
---|
263 | {
|
---|
264 | vertex_program_ref GameTools/BlurVS
|
---|
265 | {
|
---|
266 |
|
---|
267 | }
|
---|
268 | fragment_program_ref GameTools/BlurPS
|
---|
269 | {
|
---|
270 | param_named_auto width viewport_width
|
---|
271 | param_named_auto height viewport_height
|
---|
272 | }
|
---|
273 | texture_unit
|
---|
274 | {
|
---|
275 | filtering bilinear
|
---|
276 | }
|
---|
277 |
|
---|
278 | }
|
---|
279 | }
|
---|
280 | }
|
---|
281 |
|
---|
282 | vertex_program PhaseVS hlsl
|
---|
283 | {
|
---|
284 | source GameTools_Phase.hlsl
|
---|
285 | entry_point PhaseVS
|
---|
286 | target vs_2_0
|
---|
287 | }
|
---|
288 |
|
---|
289 | fragment_program Phase_HenyeyGreenSteinPS hlsl
|
---|
290 | {
|
---|
291 | source GameTools_Phase.hlsl
|
---|
292 | entry_point HenyeyGreensteinPS
|
---|
293 | target ps_2_0
|
---|
294 | }
|
---|
295 |
|
---|
296 | material Phase_HenyeyGreenStein
|
---|
297 | {
|
---|
298 |
|
---|
299 | technique
|
---|
300 | {
|
---|
301 |
|
---|
302 | pass
|
---|
303 | {
|
---|
304 | vertex_program_ref PhaseVS
|
---|
305 | {
|
---|
306 |
|
---|
307 | }
|
---|
308 | fragment_program_ref Phase_HenyeyGreenSteinPS
|
---|
309 | {
|
---|
310 |
|
---|
311 | }
|
---|
312 |
|
---|
313 | }
|
---|
314 | }
|
---|
315 | }
|
---|
316 |
|
---|
317 |
|
---|
318 |
|
---|