Debian Codegraph @

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