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 |
|
---|
99 | IllumTechniques
|
---|
100 | {
|
---|
101 |
|
---|
102 | RenderTechnique CausticReciever
|
---|
103 | {
|
---|
104 | max_caster_count 10
|
---|
105 | }
|
---|
106 | }
|
---|
107 | }
|
---|
108 | }
|
---|
109 | }
|
---|
110 |
|
---|
111 |
|
---|
112 |
|
---|
113 | material GameTools/UVShader
|
---|
114 | {
|
---|
115 | technique
|
---|
116 | {
|
---|
117 | pass
|
---|
118 | {
|
---|
119 | vertex_program_ref GameTools/UV_VS
|
---|
120 | {
|
---|
121 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
122 | }
|
---|
123 | fragment_program_ref GameTools/UV_PS
|
---|
124 | {
|
---|
125 | param_named_auto ID custom 0
|
---|
126 | }
|
---|
127 |
|
---|
128 |
|
---|
129 | }
|
---|
130 | }
|
---|
131 | }
|
---|
132 |
|
---|
133 | material GameTools/DistanceShader
|
---|
134 | {
|
---|
135 |
|
---|
136 | technique
|
---|
137 | {
|
---|
138 | pass
|
---|
139 | {
|
---|
140 | vertex_program_ref GameTools/DistanceVS
|
---|
141 | {
|
---|
142 | param_named_auto worldView worldview_matrix
|
---|
143 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
144 | }
|
---|
145 | fragment_program_ref GameTools/DistancePS
|
---|
146 | {
|
---|
147 |
|
---|
148 | }
|
---|
149 |
|
---|
150 | }
|
---|
151 | }
|
---|
152 | }
|
---|
153 |
|
---|
154 | material GameTools/SceneCameraDepthShader
|
---|
155 | {
|
---|
156 |
|
---|
157 | technique
|
---|
158 | {
|
---|
159 | scene_blend none
|
---|
160 |
|
---|
161 | pass
|
---|
162 | {
|
---|
163 | vertex_program_ref GameTools/SceneCameraDepthVS
|
---|
164 | {
|
---|
165 | param_named_auto worldView worldview_matrix
|
---|
166 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
167 | param_named_auto farplane far_clip_distance
|
---|
168 | }
|
---|
169 | fragment_program_ref GameTools/SceneDepthPS
|
---|
170 | {
|
---|
171 |
|
---|
172 | }
|
---|
173 |
|
---|
174 | }
|
---|
175 | }
|
---|
176 | }
|
---|
177 |
|
---|
178 | material GameTools/FocusingShader
|
---|
179 | {
|
---|
180 |
|
---|
181 | technique
|
---|
182 | {
|
---|
183 | scene_blend none
|
---|
184 |
|
---|
185 | pass
|
---|
186 | {
|
---|
187 | vertex_program_ref GameTools/FocusingVS
|
---|
188 | {
|
---|
189 | param_named_auto world world_matrix
|
---|
190 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
191 | param_named lightTransform matrix4x4
|
---|
192 | }
|
---|
193 | fragment_program_ref GameTools/FocusingPS
|
---|
194 | {
|
---|
195 |
|
---|
196 | }
|
---|
197 |
|
---|
198 | }
|
---|
199 | }
|
---|
200 | }
|
---|
201 |
|
---|
202 | material GameTools/ShadowMapDepth
|
---|
203 | {
|
---|
204 |
|
---|
205 | technique
|
---|
206 | {
|
---|
207 | scene_blend none
|
---|
208 |
|
---|
209 | pass
|
---|
210 | {
|
---|
211 | //cull_hardware anticlockwise
|
---|
212 | //cull_hardware none
|
---|
213 |
|
---|
214 | vertex_program_ref GameTools/ShadowMap/DepthVS
|
---|
215 | {
|
---|
216 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
217 | }
|
---|
218 | fragment_program_ref GameTools/ShadowMap/DepthPS
|
---|
219 | {
|
---|
220 |
|
---|
221 | }
|
---|
222 |
|
---|
223 | }
|
---|
224 | }
|
---|
225 | }
|
---|
226 |
|
---|
227 |
|
---|
228 | material GameTools/Blur
|
---|
229 | {
|
---|
230 |
|
---|
231 | technique
|
---|
232 | {
|
---|
233 |
|
---|
234 | pass
|
---|
235 | {
|
---|
236 | vertex_program_ref GameTools/BlurVS
|
---|
237 | {
|
---|
238 |
|
---|
239 | }
|
---|
240 | fragment_program_ref GameTools/BlurPS
|
---|
241 | {
|
---|
242 | param_named_auto width viewport_width
|
---|
243 | param_named_auto height viewport_height
|
---|
244 | }
|
---|
245 | texture_unit
|
---|
246 | {
|
---|
247 | filtering bilinear
|
---|
248 | }
|
---|
249 |
|
---|
250 | }
|
---|
251 | }
|
---|
252 | }
|
---|
253 |
|
---|
254 | vertex_program PhaseVS hlsl
|
---|
255 | {
|
---|
256 | source GameTools_Phase.hlsl
|
---|
257 | entry_point PhaseVS
|
---|
258 | target vs_2_0
|
---|
259 | }
|
---|
260 |
|
---|
261 | fragment_program Phase_HenyeyGreenSteinPS hlsl
|
---|
262 | {
|
---|
263 | source GameTools_Phase.hlsl
|
---|
264 | entry_point HenyeyGreensteinPS
|
---|
265 | target ps_2_0
|
---|
266 | }
|
---|
267 |
|
---|
268 | material Phase_HenyeyGreenStein
|
---|
269 | {
|
---|
270 |
|
---|
271 | technique
|
---|
272 | {
|
---|
273 |
|
---|
274 | pass
|
---|
275 | {
|
---|
276 | vertex_program_ref PhaseVS
|
---|
277 | {
|
---|
278 |
|
---|
279 | }
|
---|
280 | fragment_program_ref Phase_HenyeyGreenSteinPS
|
---|
281 | {
|
---|
282 |
|
---|
283 | }
|
---|
284 |
|
---|
285 | }
|
---|
286 | }
|
---|
287 | } |
---|