Debian Codegraph @

Effects/hud.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <name>Effects/hud</name>
4 <inherits-from>Effects/model-default</inherits-from>
5
6 <parameters>
7 <texture n="1">
8 <image>Aircraft/Generic/Effects/window_frost.png</image>
9 <type>2d</type>
10 <filter>linear-mipmap-linear</filter>
11 <wrap-s>repeat</wrap-s>
12 <wrap-t>repeat</wrap-t>
13 <internal-format>normalized</internal-format>
14 </texture>
15 <!-- placeholder for the function texture used for fogging, wiper area,...-->
16 <texture n="2">
17 <image>Aircraft/Generic/Effects/hud-glass.rgb</image>
18 <type>2d</type>
19 <filter>linear-mipmap-linear</filter>
20 <wrap-s>repeat</wrap-s>
21 <wrap-t>repeat</wrap-t>
22 <internal-format>normalized</internal-format>
23 </texture>
24 <!-- texture for reflections in the glass -->
25 <texture n="3">
26 <type>cubemap</type>
27 <images>
28 <positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x>
29 <negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x>
30 <positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y>
31 <negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y>
32 <positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z>
33 <negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z>
34 </images>
35 </texture>
36 <!-- placeholder lightmap texture for reflections in the glass -->
37 <texture n="4">
38 <type>cubemap</type>
39 <images>
40 <positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x>
41 <negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x>
42 <positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y>
43 <negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y>
44 <positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z>
45 <negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z>
46 </images>
47 </texture>
48 <glass-tint type="vec4d" n="0"> 0.95 1.0 0.95 1.0</glass-tint>
49 <overlay-color type="vec3d" n="0"> 0.8 1.0 0.9</overlay-color>
50 <splash-x><use>/environment/aircraft-effects/splash-vector-x</use></splash-x>
51 <splash-y><use>/environment/aircraft-effects/splash-vector-y</use></splash-y>
52 <splash-z><use>/environment/aircraft-effects/splash-vector-z</use></splash-z>
53 <rnorm><use>/environment/rain-norm</use></rnorm>
54 <gsnorm><use>/environment/aircraft-effects/ground-splash-norm</use></gsnorm>
55 <frost-level><use>/environment/aircraft-effects/frost-level</use></frost-level>
56 <surface-mapping-scheme type="int">0</surface-mapping-scheme>
57 <fog-level><use>/environment/aircraft-effects/fog-level</use></fog-level>
58 <use-wipers><use>/environment/aircraft-effects/use-wipers</use></use-wipers>
59 <use-overlay>1</use-overlay>
60 <overlay-alpha type="float">0.35</overlay-alpha>
61 <overlay-glare type="float">0.4</overlay-glare>
62 <use-reflection type="int">0</use-reflection>
63 <reflection-strength type="float">1.0</reflection-strength>
64 <use-mask type="int">1</use-mask>
65 <use-reflection-lightmap type="int">0</use-reflection-lightmap>
66 <lightmap-multi type="int">0</lightmap-multi>
67 <lightmap-factor type="float" n="0">1.0</lightmap-factor>
68 <lightmap-color type="vec3d" n="0"> 1.0 1.0 1.0 </lightmap-color>
69 <lightmap-factor type="float" n="1">1.0</lightmap-factor>
70 <lightmap-color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap-color>
71 <lightmap-factor type="float" n="2">1.0</lightmap-factor>
72 <lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color>
73 <lightmap-factor type="float" n="3">1.0</lightmap-factor>
74 <lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>
75 <sample-res>0.0006</sample-res>
76 <sample-far>2.5</sample-far>
77 <hud-brightness>1.0</hud-brightness>
78 </parameters>
79
80 <technique n="4">
81 <predicate>
82 <and>
83 <property>/sim/rendering/shaders/skydome</property>
84 <or>
85 <less-equal>
86 <value type="float">2.0</value>
87 <glversion/>
88 </less-equal>
89 <and>
90 <extension-supported>GL_ARB_shader_objects</extension-supported>
91 <extension-supported>GL_ARB_shading_language_100</extension-supported>
92 <extension-supported>GL_ARB_vertex_shader</extension-supported>
93 <extension-supported>GL_ARB_fragment_shader</extension-supported>
94 </and>
95 </or>
96 </and>
97 </predicate>
98 <pass>
99 <lighting>true</lighting>
100 <depth>
101 <write-mask type="bool">false</write-mask>
102 </depth>
103 <material>
104 <active><use>material/active</use></active>
105 <ambient><use>material/ambient</use></ambient>
106 <diffuse><use>material/diffuse</use></diffuse>
107 <specular><use>material/specular</use></specular>
108 <emissive><use>material/emissive</use></emissive>
109 <shininess><use>material/shininess</use></shininess>
110 <color-mode><use>material/color-mode</use></color-mode>
111 </material>
112 <blend>
113 <active><use>blend/active</use></active>
114 <source><use>blend/source</use></source>
115 <destination><use>blend/destination</use></destination>
116 </blend>
117 <shade-model><use>shade-model</use></shade-model>
118 <cull-face><use>cull-face</use></cull-face>
119 <rendering-hint><use>rendering-hint</use></rendering-hint>
120 <render-bin>
121 <bin-number>111</bin-number>
122 <bin-name>DepthSortedBin</bin-name>
123 </render-bin>
124 <texture-unit>
125 <!-- The texture unit is always active because the shaders expect
126 that. -->
127 <unit>0</unit>
128 <type><use>texture[0]/type</use></type>
129 <image><use>texture[0]/image</use></image>
130 <filter><use>texture[0]/filter</use></filter>
131 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
132 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
133 <internal-format> <use>texture[0]/internal-format</use> </internal-format>
134 </texture-unit>
135 <texture-unit>
136 <unit>1</unit>
137 <type><use>texture[1]/type</use></type>
138 <image><use>texture[1]/image</use></image>
139 <filter><use>texture[1]/filter</use></filter>
140 <wrap-s><use>texture[1]/wrap-s</use></wrap-s>
141 <wrap-t><use>texture[1]/wrap-t</use></wrap-t>
142 <internal-format><use>texture[1]/internal-format</use></internal-format>
143 </texture-unit>
144 <texture-unit>
145 <unit>2</unit>
146 <type><use>texture[2]/type</use></type>
147 <image><use>texture[2]/image</use></image>
148 <filter><use>texture[2]/filter</use></filter>
149 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
150 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
151 <internal-format><use>texture[2]/internal-format</use></internal-format>
152 </texture-unit>
153 <texture-unit>
154 <unit>3</unit>
155 <type><use>texture[3]/type</use></type>
156 <images><use>texture[3]/images</use></images>
157 </texture-unit>
158 <texture-unit>
159 <unit>4</unit>
160 <type><use>texture[4]/type</use></type>
161 <images><use>texture[4]/images</use></images>
162 </texture-unit>
163 <vertex-program-two-side>
164 <use>vertex-program-two-side</use>
165 </vertex-program-two-side>
166 <program>
167 <vertex-shader>Shaders/hud-ALS.vert</vertex-shader>
168 <fragment-shader>Shaders/hud-ALS.frag</fragment-shader>
169 <fragment-shader>Shaders/noise.frag</fragment-shader>
170 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
171 </program>
172
173 <uniform>
174 <name>tint</name>
175 <type>float-vec4</type>
176 <value><use>glass-tint</use></value>
177 </uniform>
178 <uniform>
179 <name>overlay_color</name>
180 <type>float-vec3</type>
181 <value><use>overlay-color</use></value>
182 </uniform>
183 <uniform>
184 <name>lightmap_r_factor</name>
185 <type>float</type>
186 <value><use>lightmap-factor[0]</use></value>
187 </uniform>
188 <uniform>
189 <name>lightmap_r_color</name>
190 <type>float-vec3</type>
191 <value><use>lightmap-color[0]</use></value>
192 </uniform>
193 <uniform>
194 <name>lightmap_g_factor</name>
195 <type>float</type>
196 <value><use>lightmap-factor[1]</use></value>
197 </uniform>
198 <uniform>
199 <name>lightmap_g_color</name>
200 <type>float-vec3</type>
201 <value><use>lightmap-color[1]</use></value>
202 </uniform>
203 <uniform>
204 <name>lightmap_b_factor</name>
205 <type>float</type>
206 <value><use>lightmap-factor[2]</use></value>
207 </uniform>
208 <uniform>
209 <name>lightmap_b_color</name>
210 <type>float-vec3</type>
211 <value><use>lightmap-color[2]</use></value>
212 </uniform>
213 <uniform>
214 <name>lightmap_a_factor</name>
215 <type>float</type>
216 <value><use>lightmap-factor[3]</use></value>
217 </uniform>
218 <uniform>
219 <name>lightmap_a_color</name>
220 <type>float-vec3</type>
221 <value><use>lightmap-color[3]</use></value>
222 </uniform>
223 <uniform>
224 <name>splash_x</name>
225 <type>float</type>
226 <value><use>splash-x</use></value>
227 </uniform>
228 <uniform>
229 <name>splash_y</name>
230 <type>float</type>
231 <value><use>splash-y</use></value>
232 </uniform>
233 <uniform>
234 <name>splash_z</name>
235 <type>float</type>
236 <value><use>splash-z</use></value>
237 </uniform>
238 <uniform>
239 <name>rain_norm</name>
240 <type>float</type>
241 <value><use>rnorm</use></value>
242 </uniform>
243 <uniform>
244 <name>ground_splash_norm</name>
245 <type>float</type>
246 <value><use>gsnorm</use></value>
247 </uniform>
248 <uniform>
249 <name>frost_level</name>
250 <type>float</type>
251 <value><use>frost-level</use></value>
252 </uniform>
253 <uniform>
254 <name>fog_level</name>
255 <type>float</type>
256 <value><use>fog-level</use></value>
257 </uniform>
258 <uniform>
259 <name>sample_res</name>
260 <type>float</type>
261 <value><use>sample-res</use></value>
262 </uniform>
263 <uniform>
264 <name>sample_far</name>
265 <type>float</type>
266 <value><use>sample-far</use></value>
267 </uniform>
268 <uniform>
269 <name>hud_brightness</name>
270 <type>float</type>
271 <value><use>hud-brightness</use></value>
272 </uniform>
273 <uniform>
274 <name>scattering</name>
275 <type>float</type>
276 <value><use>scattering</use></value>
277 </uniform>
278 <uniform>
279 <name>terminator</name>
280 <type>float</type>
281 <value><use>terminator</use></value>
282 </uniform>
283 <uniform>
284 <name>ground_scattering</name>
285 <type>float</type>
286 <value><use>ground_scattering</use></value>
287 </uniform>
288 <uniform>
289 <name>terminator</name>
290 <type>float</type>
291 <value><use>terminator</use></value>
292 </uniform>
293 <uniform>
294 <name>overcast</name>
295 <type>float</type>
296 <value><use>overcast</use></value>
297 </uniform>
298 <uniform>
299 <name>hazeLayerAltitude</name>
300 <type>float</type>
301 <value><use>lthickness</use></value>
302 </uniform>
303 <uniform>
304 <name>eye_alt</name>
305 <type>float</type>
306 <value><use>eye_alt</use></value>
307 </uniform>
308 <uniform>
309 <name>cloud_self_shading</name>
310 <type>float</type>
311 <value><use>cloud_self_shading</use></value>
312 </uniform>
313 <uniform>
314 <name>moonlight</name>
315 <type>float</type>
316 <value><use>moonlight</use></value>
317 </uniform>
318 <uniform>
319 <name>air_pollution</name>
320 <type>float</type>
321 <value><use>air_pollution</use></value>
322 </uniform>
323 <uniform>
324 <name>reflection_strength</name>
325 <type>float</type>
326 <value><use>reflection-strength</use></value>
327 </uniform>
328 <uniform>
329 <name>overlay_alpha</name>
330 <type>float</type>
331 <value><use>overlay-alpha</use></value>
332 </uniform>
333 <uniform>
334 <name>overlay_glare</name>
335 <type>float</type>
336 <value><use>overlay-glare</use></value>
337 </uniform>
338 <!-- filtering -->
339 <uniform>
340 <name>gamma</name>
341 <type>float</type>
342 <value><use>gamma</use></value>
343 </uniform>
344 <uniform>
345 <name>brightness</name>
346 <type>float</type>
347 <value><use>brightness</use></value>
348 </uniform>
349 <uniform>
350 <name>use_filtering</name>
351 <type>bool</type>
352 <value><use>use_filtering</use></value>
353 </uniform>
354 <uniform>
355 <name>use_night_vision</name>
356 <type>bool</type>
357 <value><use>use_night_vision</use></value>
358 </uniform>
359 <uniform>
360 <name>use_IR_vision</name>
361 <type>bool</type>
362 <value><use>use_IR_vision</use></value>
363 </uniform>
364 <uniform>
365 <name>delta_T</name>
366 <type>float</type>
367 <value><use>delta_T</use></value>
368 </uniform>
369 <uniform>
370 <name>fact_grey</name>
371 <type>float</type>
372 <value><use>fact_grey</use></value>
373 </uniform>
374 <uniform>
375 <name>fact_black</name>
376 <type>float</type>
377 <value><use>fact_black</use></value>
378 </uniform>
379 <uniform>
380 <name>display_xsize</name>
381 <type>int</type>
382 <value><use>display_xsize</use></value>
383 </uniform>
384 <uniform>
385 <name>display_ysize</name>
386 <type>int</type>
387 <value><use>display_ysize</use></value>
388 </uniform>
389
390 <uniform>
391 <name>texture</name>
392 <type>sampler-2d</type>
393 <value type="int">0</value>
394 </uniform>
395 <uniform>
396 <name>frost_texture</name>
397 <type>sampler-2d</type>
398 <value type="int">1</value>
399 </uniform>
400 <uniform>
401 <name>func_texture</name>
402 <type>sampler-2d</type>
403 <value type="int">2</value>
404 </uniform>
405 <uniform>
406 <name>cube_texture</name>
407 <type>sampler-cube</type>
408 <value type="int">3</value>
409 </uniform>
410 <uniform>
411 <name>cube_light_texture</name>
412 <type>sampler-cube</type>
413 <value type="int">4</value>
414 </uniform>
415 <uniform>
416 <name>use_reflection</name>
417 <type>int</type>
418 <value><use>use-reflection</use></value>
419 </uniform>
420 <uniform>
421 <name>use_mask</name>
422 <type>int</type>
423 <value><use>use-mask</use></value>
424 </uniform>
425 <uniform>
426 <name>use_wipers</name>
427 <type>int</type>
428 <value><use>use-wipers</use></value>
429 </uniform>
430 <uniform>
431 <name>use_overlay</name>
432 <type>int</type>
433 <value><use>use-overlay</use></value>
434 </uniform>
435 <uniform>
436 <name>use_reflection_lightmap</name>
437 <type>int</type>
438 <value><use>use-reflection-lightmap</use></value>
439 </uniform>
440 <uniform>
441 <name>lightmap_multi</name>
442 <type>int</type>
443 <value><use>lightmap-multi</use></value>
444 </uniform>
445 <uniform>
446 <name>adaptive_mapping</name>
447 <type>int</type>
448 <value><use>surface-mapping-scheme</use></value>
449 </uniform>
450 <uniform>
451 <name>colorMode</name>
452 <type>int</type>
453 <value><use>material/color-mode-uniform</use></value>
454 </uniform>
455 </pass>
456 </technique>
457
458 <!-- fall back to a fixed pipeline technique equivalent to model-transparent otherwise -->
459 <!-- Rembrandt technique of model-default comes at 10, so we insert before that -->
460
461 <technique n="9">
462 <pass>
463 <lighting>true</lighting>
464 <depth>
465 <write-mask type="bool">false</write-mask>
466 </depth>
467 <material>
468 <active>
469 <use>material/active</use>
470 </active>
471 <ambient>
472 <use>material/ambient</use>
473 </ambient>
474 <diffuse>
475 <use>material/diffuse</use>
476 </diffuse>
477 <specular>
478 <use>material/specular</use>
479 </specular>
480 <emissive>
481 <use>material/emissive</use>
482 </emissive>
483 <shininess>
484 <use>material/shininess</use>
485 </shininess>
486 <color-mode>
487 <use>material/color-mode</use>
488 </color-mode>
489 </material>
490 <blend>
491 <active>
492 <use>blend/active</use>
493 </active>
494 <source>
495 <use>blend/source</use>
496 </source>
497 <destination>
498 <use>blend/destination</use>
499 </destination>
500 </blend>
501 <shade-model>
502 <use>shade-model</use>
503 </shade-model>
504 <cull-face>
505 <use>cull-face</use>
506 </cull-face>
507 <render-bin>
508 <bin-number>111</bin-number>
509 <bin-name>DepthSortedBin</bin-name>
510 </render-bin>
511 <texture-unit>
512 <unit>0</unit>
513 <active>
514 <use>texture[0]/active</use>
515 </active>
516 <type>
517 <use>texture[0]/type</use>
518 </type>
519 <image>
520 <use>texture[0]/image</use>
521 </image>
522 <filter>
523 <use>texture[0]/filter</use>
524 </filter>
525 <wrap-s>
526 <use>texture[0]/wrap-s</use>
527 </wrap-s>
528 <wrap-t>
529 <use>texture[0]/wrap-t</use>
530 </wrap-t>
531
532 <environment>
533 <mode>modulate</mode>
534 </environment>
535 </texture-unit>
536 </pass>
537 </technique>
538
539
540 </PropertyList>