Debian Codegraph @

Effects/ws30-overlay.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <!--
4 WS30 terrain overlay effect. There are 2 passes over the terrain.
5 The 1st pass is a normal ALS ultra shaders pass from ws30.eff.
6 This pass should be kept up to date with ws30.eff.
7 The 2nd pass uses geometry shaders to add smaller scale volumetric detail with
8 simplified lighting. The fragment shader used for the 2nd pass is the same as WS2 currently.
9 -->
10 <name>Effects/ws30-overlay</name>
11 <inherits-from>Effects/ws30</inherits-from>
12
13 <parameters>
14
15 <texture n="20">
16 <!-- <image>Textures/Terrain/void.png</image> temp. -->
17 <image>Textures/Terrain/mixedforest-hires.png</image> <!-- testing -->
18 <type>2d</type>
19 <filter>nearest-mipmap-nearest</filter>
20 <mag-filter>nearest</mag-filter>
21 <wrap-s>repeat</wrap-s>
22 <wrap-t>repeat</wrap-t>
23 <internal-format>normalized</internal-format>
24 </texture>
25
26 <texture n="21">
27 <!-- <image>Textures/Terrain/void.png</image> temp. -->
28 <image>Textures/Terrain/grass_hires.png</image> <!-- testing -->
29 <type>2d</type>
30 <filter>nearest-mipmap-nearest</filter>
31 <mag-filter>nearest</mag-filter>
32 <wrap-s>repeat</wrap-s>
33 <wrap-t>repeat</wrap-t>
34 <internal-format>normalized</internal-format>
35 </texture>
36
37 <max_overlay_height>1.5</max_overlay_height>
38 <overlay_scale>1.0</overlay_scale>
39 <overlay_brightness_top>1.0</overlay_brightness_top>
40 <overlay_brightness_bottom>0.5</overlay_brightness_bottom>
41 <overlay_hardness>0.5</overlay_hardness>
42 <overlay_secondary_hardness>0.5</overlay_secondary_hardness>
43 <overlay_density>0.5</overlay_density>
44 <overlay_steepness_factor>0.8</overlay_steepness_factor>
45 <overlay_secondary_density>0.5</overlay_secondary_density> <!-- Testing: should be 0.0 -->
46 <overlay_autumn_flag>0</overlay_autumn_flag>
47 <overlay_secondary_flag>1</overlay_secondary_flag> <!-- Testing: was 0 -->
48
49
50
51
52
53 </parameters>
54
55 <technique n="4">
56 <predicate>
57 <and>
58 <property>/sim/rendering/shaders/skydome</property>
59 <and>
60 <less-equal>
61 <value type="float">6.0</value>
62 <float-property>/sim/rendering/shaders/landmass</float-property>
63 </less-equal>
64 <less-equal>
65 <value type="float">6.0</value>
66 <float-property>/sim/rendering/shaders/transition</float-property>
67 </less-equal>
68 <less-equal>
69 <value type="float">1.0</value>
70 <float-property>/sim/rendering/shaders/vegetation-effects</float-property>
71 </less-equal>
72 </and>
73 <or>
74 <less-equal>
75 <value type="float">2.0</value>
76 <glversion/>
77 </less-equal>
78 <and>
79 <extension-supported>GL_ARB_shader_objects</extension-supported>
80 <extension-supported>GL_ARB_shading_language_100</extension-supported>
81 <extension-supported>GL_ARB_vertex_shader</extension-supported>
82 <extension-supported>GL_ARB_fragment_shader</extension-supported>
83 </and>
84 </or>
85 <extension-supported>GL_EXT_geometry_shader4</extension-supported>
86 </and>
87 </predicate>
88
89 <pass>
90 <lighting>true</lighting>
91 <material>
92 <ambient><use>material/ambient</use></ambient>
93 <diffuse><use>material/diffuse</use></diffuse>
94 <specular><use>material/specular</use></specular>
95 <emissive><use>material/emissive</use></emissive>
96 <shininess><use>material/shininess</use></shininess>
97 <color-mode>ambient-and-diffuse</color-mode>
98 </material>
99 <blend><use>transparent</use></blend>
100 <alpha-test><use>transparent</use></alpha-test>
101 <shade-model>smooth</shade-model>
102 <cull-face>back</cull-face>
103 <render-bin>
104 <bin-number><use>render-bin/bin-number</use></bin-number>
105 <bin-name><use>render-bin/bin-name</use></bin-name>
106 </render-bin>
107
108 <!-- texture unit 0 direct from VPBBuilder.cxx -->
109
110 <texture-unit>
111 <unit>1</unit>
112 <image><use>texture[1]/image</use></image>
113 <filter>nearest-mipmap-nearest</filter>
114 <mag-filter>nearest-mipmap-nearest</mag-filter>
115 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
116 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
117 <internal-format><use>texture[0]/internal-format</use></internal-format>
118 </texture-unit>
119
120 <texture-unit>
121 <unit>2</unit>
122 <image><use>texture[2]/image</use></image>
123 <filter><use>texture[2]/filter</use></filter>
124 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
125 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
126 <internal-format><use>texture[2]/internal-format</use></internal-format>
127 </texture-unit>
128
129 <texture-unit>
130 <unit>3</unit>
131 <image><use>texture[3]/image</use></image>
132 <filter><use>texture[3]/filter</use></filter>
133 <wrap-s><use>texture[3]/wrap-s</use></wrap-s>
134 <wrap-t><use>texture[3]/wrap-t</use></wrap-t>
135 <internal-format><use>texture[3]/internal-format</use></internal-format>
136 </texture-unit>
137
138 <texture-unit>
139 <unit>4</unit>
140 <image><use>texture[4]/image</use></image>
141 <filter><use>texture[4]/filter</use></filter>
142 <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
143 <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
144 <internal-format><use>texture[4]/internal-format</use></internal-format>
145 </texture-unit>
146
147 <texture-unit>
148 <unit>6</unit>
149 <image><use>texture[6]/image</use></image>
150 <filter><use>texture[6]/filter</use></filter>
151 <wrap-s><use>texture[6]/wrap-s</use></wrap-s>
152 <wrap-t><use>texture[6]/wrap-t</use></wrap-t>
153 <internal-format><use>texture[6]/internal-format</use></internal-format>
154 </texture-unit>
155
156 <program>
157 <vertex-shader>Shaders/ws30-ALS-ultra.vert</vertex-shader>
158 <vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
159 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
160 <fragment-shader>Shaders/ws30-ALS-ultra.frag</fragment-shader>
161 <fragment-shader>Shaders/ws30-ALS-landclass-search-functions.frag</fragment-shader>
162 <fragment-shader>Shaders/noise.frag</fragment-shader>
163 <fragment-shader>Shaders/cloud-shadowfunc.frag</fragment-shader>
164 <fragment-shader>Shaders/hazes.frag</fragment-shader>
165 <fragment-shader>Shaders/secondary_lights.frag</fragment-shader>
166 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
167 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
168 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
169 </program>
170 <uniform>
171 <name>quality_level</name>
172 <type>int</type>
173 <value><use>quality_level</use></value>
174 </uniform>
175 <uniform>
176 <name>grain_strength</name>
177 <type>float</type>
178 <value><use>grain_strength</use></value>
179 </uniform>
180 <uniform>
181 <name>intrinsic_wetness</name>
182 <type>float</type>
183 <value><use>intrinsic_wetness</use></value>
184 </uniform>
185 <uniform>
186 <name>transition_model</name>
187 <type>float</type>
188 <value><use>transition_model</use></value>
189 </uniform>
190 <uniform>
191 <name>hires_overlay_bias</name>
192 <type>float</type>
193 <value><use>hires_overlay_bias</use></value>
194 </uniform>
195 <uniform>
196 <name>dot_density</name>
197 <type>float</type>
198 <value><use>dot_density</use></value>
199 </uniform>
200 <uniform>
201 <name>dot_size</name>
202 <type>float</type>
203 <value><use>dot_size</use></value>
204 </uniform>
205 <uniform>
206 <name>dust_resistance</name>
207 <type>float</type>
208 <value><use>dust_resistance</use></value>
209 </uniform>
210 <uniform>
211 <name>visibility</name>
212 <type>float</type>
213 <value><use>visibility</use></value>
214 </uniform>
215 <uniform>
216 <name>avisibility</name>
217 <type>float</type>
218 <value><use>avisibility</use></value>
219 </uniform>
220 <uniform>
221 <name>hazeLayerAltitude</name>
222 <type>float</type>
223 <value><use>lthickness</use></value>
224 </uniform>
225 <uniform>
226 <name>scattering</name>
227 <type>float</type>
228 <value><use>scattering</use></value>
229 </uniform>
230 <uniform>
231 <name>ground_scattering</name>
232 <type>float</type>
233 <value><use>ground_scattering</use></value>
234 </uniform>
235 <uniform>
236 <name>terminator</name>
237 <type>float</type>
238 <value><use>terminator</use></value>
239 </uniform>
240 <uniform>
241 <name>terrain_alt</name>
242 <type>float</type>
243 <value><use>terrain_alt</use></value>
244 </uniform>
245 <uniform>
246 <name>overcast</name>
247 <type>float</type>
248 <value><use>overcast</use></value>
249 </uniform>
250 <uniform>
251 <name>eye_alt</name>
252 <type>float</type>
253 <value><use>eye_alt</use></value>
254 </uniform>
255 <uniform>
256 <name>eye_lat</name>
257 <type>float</type>
258 <value><use>eye_lat</use></value>
259 </uniform>
260 <uniform>
261 <name>eye_lon</name>
262 <type>float</type>
263 <value><use>eye_lon</use></value>
264 </uniform>
265 <uniform>
266 <name>snowlevel</name>
267 <type>float</type>
268 <value><use>snow_level</use></value>
269 </uniform>
270 <uniform>
271 <name>snow_thickness_factor</name>
272 <type>float</type>
273 <value><use>snow_thickness_factor</use></value>
274 </uniform>
275 <uniform>
276 <name>dust_cover_factor</name>
277 <type>float</type>
278 <value><use>dust_cover_factor</use></value>
279 </uniform>
280 <uniform>
281 <name>lichen_cover_factor</name>
282 <type>float</type>
283 <value> <use>lichen_cover_factor</use></value>
284 </uniform>
285 <uniform>
286 <name>wetness</name>
287 <type>float</type>
288 <value><use>wetness</use></value>
289 </uniform>
290 <uniform>
291 <name>fogstructure</name>
292 <type>float</type>
293 <value><use>fogstructure</use></value>
294 </uniform>
295 <uniform>
296 <name>cloud_self_shading</name>
297 <type>float</type>
298 <value><use>cloud_self_shading</use></value>
299 </uniform>
300 <uniform>
301 <name>moonlight</name>
302 <type>float</type>
303 <value><use>moonlight</use></value>
304 </uniform>
305 <uniform>
306 <name>season</name>
307 <type>float</type>
308 <value><use>season</use></value>
309 </uniform>
310 <uniform>
311 <name>air_pollution</name>
312 <type>float</type>
313 <value><use>air_pollution</use></value>
314 </uniform>
315 <!-- secondary lights -->
316 <uniform>
317 <name>view_pitch_offset</name>
318 <type>float</type>
319 <value><use>view_pitch_offset</use></value>
320 </uniform>
321 <uniform>
322 <name>view_heading_offset</name>
323 <type>float</type>
324 <value><use>view_heading_offset</use></value>
325 </uniform>
326 <uniform>
327 <name>field_of_view</name>
328 <type>float</type>
329 <value><use>view_fov</use></value>
330 </uniform>
331 <uniform>
332 <name>landing_light1_offset</name>
333 <type>float</type>
334 <value><use>landing_light1_offset</use></value>
335 </uniform>
336 <uniform>
337 <name>landing_light2_offset</name>
338 <type>float</type>
339 <value><use>landing_light2_offset</use></value>
340 </uniform>
341 <uniform>
342 <name>landing_light3_offset</name>
343 <type>float</type>
344 <value><use>landing_light3_offset</use></value>
345 </uniform>
346 <!-- filtering -->
347 <uniform>
348 <name>gamma</name>
349 <type>float</type>
350 <value><use>gamma</use></value>
351 </uniform>
352 <uniform>
353 <name>brightness</name>
354 <type>float</type>
355 <value><use>brightness</use></value>
356 </uniform>
357 <uniform>
358 <name>use_night_vision</name>
359 <type>bool</type>
360 <value><use>use_night_vision</use></value>
361 </uniform>
362 <uniform>
363 <name>use_IR_vision</name>
364 <type>bool</type>
365 <value><use>use_IR_vision</use></value>
366 </uniform>
367 <uniform>
368 <name>use_filtering</name>
369 <type>bool</type>
370 <value><use>use_filtering</use></value>
371 </uniform>
372 <uniform>
373 <name>delta_T</name>
374 <type>float</type>
375 <value><use>delta_T</use></value>
376 </uniform>
377 <uniform>
378 <name>fact_grey</name>
379 <type>float</type>
380 <value><use>fact_grey</use></value>
381 </uniform>
382 <uniform>
383 <name>fact_black</name>
384 <type>float</type>
385 <value><use>fact_black</use></value>
386 </uniform>
387 <!-- cloud shadows -->
388 <uniform>
389 <name>cloudpos1_x</name>
390 <type>float</type>
391 <value><use>cloudpos1_x</use></value>
392 </uniform>
393 <uniform>
394 <name>cloudpos1_y</name>
395 <type>float</type>
396 <value><use>cloudpos1_y</use></value>
397 </uniform>
398 <uniform>
399 <name>cloudpos2_x</name>
400 <type>float</type>
401 <value><use>cloudpos2_x</use></value>
402 </uniform>
403 <uniform>
404 <name>cloudpos2_y</name>
405 <type>float</type>
406 <value><use>cloudpos2_y</use></value>
407 </uniform>
408 <uniform>
409 <name>cloudpos3_x</name>
410 <type>float</type>
411 <value><use>cloudpos3_x</use></value>
412 </uniform>
413 <uniform>
414 <name>cloudpos3_y</name>
415 <type>float</type>
416 <value><use>cloudpos3_y</use></value>
417 </uniform>
418 <uniform>
419 <name>cloudpos4_x</name>
420 <type>float</type>
421 <value><use>cloudpos4_x</use></value>
422 </uniform>
423 <uniform>
424 <name>cloudpos4_y</name>
425 <type>float</type>
426 <value><use>cloudpos4_y</use></value>
427 </uniform>
428 <uniform>
429 <name>cloudpos5_x</name>
430 <type>float</type>
431 <value><use>cloudpos5_x</use></value>
432 </uniform>
433 <uniform>
434 <name>cloudpos5_y</name>
435 <type>float</type>
436 <value><use>cloudpos5_y</use></value>
437 </uniform>
438 <uniform>
439 <name>cloudpos6_x</name>
440 <type>float</type>
441 <value><use>cloudpos6_x</use></value>
442 </uniform>
443 <uniform>
444 <name>cloudpos6_y</name>
445 <type>float</type>
446 <value><use>cloudpos6_y</use></value>
447 </uniform>
448 <uniform>
449 <name>cloudpos7_x</name>
450 <type>float</type>
451 <value><use>cloudpos7_x</use></value>
452 </uniform>
453 <uniform>
454 <name>cloudpos7_y</name>
455 <type>float</type>
456 <value><use>cloudpos7_y</use></value>
457 </uniform>
458 <uniform>
459 <name>cloudpos8_x</name>
460 <type>float</type>
461 <value><use>cloudpos8_x</use></value>
462 </uniform>
463 <uniform>
464 <name>cloudpos8_y</name>
465 <type>float</type>
466 <value><use>cloudpos8_y</use></value>
467 </uniform>
468 <uniform>
469 <name>cloudpos9_x</name>
470 <type>float</type>
471 <value><use>cloudpos9_x</use></value>
472 </uniform>
473 <uniform>
474 <name>cloudpos9_y</name>
475 <type>float</type>
476 <value><use>cloudpos9_y</use></value>
477 </uniform>
478 <uniform>
479 <name>cloudpos10_x</name>
480 <type>float</type>
481 <value><use>cloudpos10_x</use></value>
482 </uniform>
483 <uniform>
484 <name>cloudpos10_y</name>
485 <type>float</type>
486 <value><use>cloudpos10_y</use></value>
487 </uniform>
488 <uniform>
489 <name>cloudpos11_x</name>
490 <type>float</type>
491 <value><use>cloudpos11_x</use></value>
492 </uniform>
493 <uniform>
494 <name>cloudpos11_y</name>
495 <type>float</type>
496 <value><use>cloudpos11_y</use></value>
497 </uniform>
498 <uniform>
499 <name>cloudpos12_x</name>
500 <type>float</type>
501 <value><use>cloudpos12_x</use></value>
502 </uniform>
503 <uniform>
504 <name>cloudpos12_y</name>
505 <type>float</type>
506 <value><use>cloudpos12_y</use></value>
507 </uniform>
508 <uniform>
509 <name>cloudpos13_x</name>
510 <type>float</type>
511 <value><use>cloudpos13_x</use></value>
512 </uniform>
513 <uniform>
514 <name>cloudpos13_y</name>
515 <type>float</type>
516 <value><use>cloudpos13_y</use></value>
517 </uniform>
518 <uniform>
519 <name>cloudpos14_x</name>
520 <type>float</type>
521 <value><use>cloudpos14_x</use></value>
522 </uniform>
523 <uniform>
524 <name>cloudpos14_y</name>
525 <type>float</type>
526 <value><use>cloudpos14_y</use></value>
527 </uniform>
528 <uniform>
529 <name>cloudpos15_x</name>
530 <type>float</type>
531 <value><use>cloudpos15_x</use></value>
532 </uniform>
533 <uniform>
534 <name>cloudpos15_y</name>
535 <type>float</type>
536 <value><use>cloudpos15_y</use></value>
537 </uniform>
538 <uniform>
539 <name>cloudpos16_x</name>
540 <type>float</type>
541 <value><use>cloudpos16_x</use></value>
542 </uniform>
543 <uniform>
544 <name>cloudpos16_y</name>
545 <type>float</type>
546 <value><use>cloudpos16_y</use></value>
547 </uniform>
548 <uniform>
549 <name>cloudpos17_x</name>
550 <type>float</type>
551 <value><use>cloudpos17_x</use></value>
552 </uniform>
553 <uniform>
554 <name>cloudpos17_y</name>
555 <type>float</type>
556 <value><use>cloudpos17_y</use></value>
557 </uniform>
558 <uniform>
559 <name>cloudpos18_x</name>
560 <type>float</type>
561 <value><use>cloudpos18_x</use></value>
562 </uniform>
563 <uniform>
564 <name>cloudpos18_y</name>
565 <type>float</type>
566 <value><use>cloudpos18_y</use></value>
567 </uniform>
568 <uniform>
569 <name>cloudpos19_x</name>
570 <type>float</type>
571 <value><use>cloudpos19_x</use></value>
572 </uniform>
573 <uniform>
574 <name>cloudpos19_y</name>
575 <type>float</type>
576 <value><use>cloudpos19_y</use></value>
577 </uniform>
578 <uniform>
579 <name>cloudpos20_x</name>
580 <type>float</type>
581 <value><use>cloudpos20_x</use></value>
582 </uniform>
583 <uniform>
584 <name>cloudpos20_y</name>
585 <type>float</type>
586 <value><use>cloudpos20_y</use></value>
587 </uniform>
588 <uniform>
589 <name>WindE</name>
590 <type>float</type>
591 <value><use>windE</use></value>
592 </uniform>
593 <uniform>
594 <name>WindN</name>
595 <type>float</type>
596 <value><use>windN</use></value>
597 </uniform>
598 <uniform>
599 <name>use_searchlight</name>
600 <type>int</type>
601 <value> <use>use_searchlight</use></value>
602 </uniform>
603 <uniform>
604 <name>use_landing_light</name>
605 <type>int</type>
606 <value> <use>use_landing_light</use></value>
607 </uniform>
608 <uniform>
609 <name>use_alt_landing_light</name>
610 <type>int</type>
611 <value> <use>use_alt_landing_light</use></value>
612 </uniform>
613 <uniform>
614 <name>display_xsize</name>
615 <type>int</type>
616 <value><use>display_xsize</use></value>
617 </uniform>
618 <uniform>
619 <name>display_ysize</name>
620 <type>int</type>
621 <value><use>display_ysize</use></value>
622 </uniform>
623 <uniform>
624 <name>wind_effects</name>
625 <type>int</type>
626 <value><use>wind_effects</use></value>
627 </uniform>
628 <uniform>
629 <name>cloud_shadow_flag</name>
630 <type>int</type>
631 <value><use>cloud_shadow_flag</use></value>
632 </uniform>
633 <uniform>
634 <name>rock_strata</name>
635 <type>int</type>
636 <value><use>rock_strata</use></value>
637 </uniform>
638 <uniform>
639 <name>raise_vertex</name>
640 <type>bool</type>
641 <value> <use>raise_vertex</use></value>
642 </uniform>
643 <uniform>
644 <name>landclass</name>
645 <type>sampler-2d</type>
646 <value type="int">0</value>
647 </uniform>
648 <uniform>
649 <name>textureArray</name>
650 <type>sampler-2d</type>
651 <value type="int">1</value>
652 </uniform>
653 <uniform>
654 <name>perlin</name>
655 <type>sampler-2d</type>
656 <value type="int">6</value>
657 </uniform>
658 <uniform>
659 <name>swatch_size</name>
660 <type>int</type>
661 <!--
662 Testing: hardcoded placeholder to allow noise to be calculated while looking up textures
663 <value><use>xsize</use></value>
664 -->
665 <value>2000</value>
666 </uniform>
667 <uniform>
668 <name>colorMode</name>
669 <type>int</type>
670 <value>2</value>
671 <!-- AMBIENT_AND_DIFFUSE -->
672 </uniform>
673 <!-- BEGIN shadows include -->
674 <uniform>
675 <name>shadow_tex</name>
676 <type>sampler-2d</type>
677 <value type="int">10</value>
678 </uniform>
679 <uniform>
680 <name>shadows_enabled</name>
681 <type>bool</type>
682 <value>
683 <use>shadows_enabled</use>
684 </value>
685 </uniform>
686 <uniform>
687 <name>sun_atlas_size</name>
688 <type>int</type>
689 <value>
690 <use>sun_atlas_size</use>
691 </value>
692 </uniform>
693 <!-- END shadows include -->
694 </pass>
695
696 <pass n="2">
697 <lighting>true</lighting>
698 <material>
699 <ambient><use>material/ambient</use></ambient>
700 <diffuse><use>material/diffuse</use></diffuse>
701 <specular><use>material/specular</use></specular>
702 <emissive><use>material/emissive</use></emissive>
703 <shininess><use>material/shininess</use></shininess>
704 <color-mode>ambient-and-diffuse</color-mode>
705 </material>
706 <alpha-test><use>transparent</use></alpha-test>
707 <shade-model>smooth</shade-model>
708 <!--<alpha-to-coverage>true</alpha-to-coverage>-->
709
710 <cull-face>back</cull-face>
711
712 <!--<render-bin>
713 <bin-number>111</bin-number>
714 <bin-name>DepthSortedBin</bin-name>
715 </render-bin>-->
716 <render-bin>
717 <bin-number><use>render-bin/bin-number</use></bin-number>
718 <bin-name><use>render-bin/bin-name</use></bin-name>
719 </render-bin>
720
721 <texture-unit>
722 <unit>7</unit>
723 <type><use>texture[20]/type</use></type>
724 <image><use>texture[20]/image</use></image>
725 <filter><use>texture[20]/filter</use></filter>
726 <mag-filter><use>texture[20]/mag-filter</use></mag-filter>
727 <wrap-s><use>texture[20]/wrap-s</use></wrap-s>
728 <wrap-t><use>texture[20]/wrap-t</use></wrap-t>
729 <internal-format><use>texture[20]/internal-format</use></internal-format>
730 </texture-unit>
731 <texture-unit>
732 <unit>8</unit>
733 <type><use>texture[21]/type</use></type>
734 <image><use>texture[21]/image</use></image>
735 <filter><use>texture[21]/filter</use></filter>
736 <mag-filter><use>texture[21]/mag-filter</use></mag-filter>
737 <wrap-s><use>texture[21]/wrap-s</use></wrap-s>
738 <wrap-t><use>texture[21]/wrap-t</use></wrap-t>
739 <internal-format><use>texture[21]/internal-format</use></internal-format>
740 </texture-unit>
741 <program>
742 <vertex-shader>Shaders/ws30-overlay-ALS.vert</vertex-shader>
743 <geometry-shader>Shaders/ws30-overlay-ALS.geom</geometry-shader>
744 <fragment-shader>Shaders/terrain-overlay-ALS.frag</fragment-shader>
745 <fragment-shader>Shaders/noise.frag</fragment-shader>
746 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
747 <fragment-shader>Shaders/cloud-shadowfunc.frag</fragment-shader>
748 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
749 <geometry-vertices-out type="int">96</geometry-vertices-out>
750 <geometry-input-type>triangles</geometry-input-type>
751 <geometry-output-type>triangle-strip</geometry-output-type>
752 </program>
753 <uniform>
754 <name>overlayPrimaryTex</name>
755 <type>sampler-2d</type>
756 <value type="int">7</value>
757 </uniform>
758 <uniform>
759 <name>overlaySecondaryTex</name>
760 <type>sampler-2d</type>
761 <value type="int">8</value>
762 </uniform>
763 <uniform>
764 <name>visibility</name>
765 <type>float</type>
766 <value><use>visibility</use></value>
767 </uniform>
768 <uniform>
769 <name>avisibility</name>
770 <type>float</type>
771 <value><use>avisibility</use></value>
772 </uniform>
773 <uniform>
774 <name>scattering</name>
775 <type>float</type>
776 <value><use>scattering</use></value>
777 </uniform>
778 <uniform>
779 <name>overlay_bias</name>
780 <type>float</type>
781 <value><use>overlay_bias</use></value>
782 </uniform>
783 <uniform>
784 <name>overlay_max_height</name>
785 <type>float</type>
786 <value><use>max_overlay_height</use></value>
787 </uniform>
788 <uniform>
789 <name>overlay_hardness</name>
790 <type>float</type>
791 <value><use>overlay_hardness</use></value>
792 </uniform>
793 <uniform>
794 <name>overlay_secondary_hardness</name>
795 <type>float</type>
796 <value><use>overlay_secondary_hardness</use></value>
797 </uniform>
798 <uniform>
799 <name>overlay_density</name>
800 <type>float</type>
801 <value><use>overlay_density</use></value>
802 </uniform>
803 <uniform>
804 <name>overlay_secondary_density</name>
805 <type>float</type>
806 <value><use>overlay_secondary_density</use></value>
807 </uniform>
808 <uniform>
809 <name>overlay_scale</name>
810 <type>float</type>
811 <value><use>overlay_scale</use></value>
812 </uniform>
813 <uniform>
814 <name>overlay_brightness_top</name>
815 <type>float</type>
816 <value><use>overlay_brightness_top</use></value>
817 </uniform>
818 <uniform>
819 <name>overlay_brightness_bottom</name>
820 <type>float</type>
821 <value><use>overlay_brightness_bottom</use></value>
822 </uniform>
823 <uniform>
824 <name>overlay_steepness_factor</name>
825 <type>float</type>
826 <value><use>overlay_steepness_factor</use></value>
827 </uniform>
828 <uniform>
829 <name>season</name>
830 <type>float</type>
831 <value><use>season</use></value>
832 </uniform>
833 <uniform>
834 <name>dust_cover_factor</name>
835 <type>float</type>
836 <value><use>dust_cover_factor</use></value>
837 </uniform>
838 <uniform>
839 <name>wetness</name>
840 <type>float</type>
841 <value><use>wetness</use></value>
842 </uniform>
843 <uniform>
844 <name>snowlevel</name>
845 <type>float</type>
846 <value><use>snow_level</use></value>
847 </uniform>
848 <uniform>
849 <name>snow_thickness_factor</name>
850 <type>float</type>
851 <value><use>snow_thickness_factor</use></value>
852 </uniform>
853
854 <!-- cloud shadows -->
855 <uniform>
856 <name>cloudpos_n_x</name>
857 <type>float</type>
858 <value><use>cloudpos_n_x</use></value>
859 </uniform>
860 <uniform>
861 <name>cloudpos_n_y</name>
862 <type>float</type>
863 <value><use>cloudpos_n_y</use></value>
864 </uniform>
865
866
867 <!-- filtering -->
868 <uniform>
869 <name>gamma</name>
870 <type>float</type>
871 <value><use>gamma</use></value>
872 </uniform>
873 <uniform>
874 <name>brightness</name>
875 <type>float</type>
876 <value><use>brightness</use></value>
877 </uniform>
878 <uniform>
879 <name>use_night_vision</name>
880 <type>bool</type>
881 <value><use>use_night_vision</use></value>
882 </uniform>
883 <uniform>
884 <name>use_IR_vision</name>
885 <type>bool</type>
886 <value><use>use_IR_vision</use></value>
887 </uniform>
888 <uniform>
889 <name>use_filtering</name>
890 <type>bool</type>
891 <value><use>use_filtering</use></value>
892 </uniform>
893 <uniform>
894 <name>delta_T</name>
895 <type>float</type>
896 <value><use>delta_T</use></value>
897 </uniform>
898 <uniform>
899 <name>fact_grey</name>
900 <type>float</type>
901 <value><use>fact_grey</use></value>
902 </uniform>
903 <uniform>
904 <name>fact_black</name>
905 <type>float</type>
906 <value><use>fact_black</use></value>
907 </uniform>
908
909 <uniform>
910 <name>display_xsize</name>
911 <type>int</type>
912 <value><use>display_xsize</use></value>
913 </uniform>
914 <uniform>
915 <name>display_ysize</name>
916 <type>int</type>
917 <value><use>display_ysize</use></value>
918 </uniform>
919 <uniform>
920 <name>overlay_autumn_flag</name>
921 <type>int</type>
922 <value><use>overlay_autumn_flag</use></value>
923 </uniform>
924 <uniform>
925 <name>overlay_secondary_flag</name>
926 <type>int</type>
927 <value><use>overlay_secondary_flag</use></value>
928 </uniform>
929 <uniform>
930 <name>cloud_shadow_flag</name>
931 <type>int</type>
932 <value><use>cloud_shadow_flag</use></value>
933 </uniform>
934 <!-- BEGIN shadows include -->
935 <uniform>
936 <name>shadow_tex</name>
937 <type>sampler-2d</type>
938 <value type="int">10</value>
939 </uniform>
940 <uniform>
941 <name>shadows_enabled</name>
942 <type>bool</type>
943 <value>
944 <use>shadows_enabled</use>
945 </value>
946 </uniform>
947 <uniform>
948 <name>sun_atlas_size</name>
949 <type>int</type>
950 <value>
951 <use>sun_atlas_size</use>
952 </value>
953 </uniform>
954 <!-- END shadows include -->
955
956 <blend>
957 <active>true</active>
958 <source>src-alpha</source>
959 <destination>one-minus-src-alpha</destination>
960 </blend>
961
962 <depth>
963 <write-mask>false</write-mask>
964 </depth>
965 </pass>
966 </technique>
967 </PropertyList>