Debian Codegraph @

Environment/local-weather-rules.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!--
3 This file is part of FlightGear, the free flight simulator
4 http://www.flightgear.org/
5
6 Copyright (C) 2012 Torsten Dreyer, Torsten (at) t3r _dot_ de
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17 -->
18 <!--
19 Compute Atmospheric Light Shading related properties
20 -->
21 <PropertyList>
22
23 <!-- (pi/2 - /sim/time/sun-angle-rad) / 0.017451 * 110000.0 -->
24 <filter>
25 <name>LocalWeather:terminator-relative-position</name>
26 <input>
27 <expression>
28 <difference>
29 <value>1.57079632675</value>
30 <property>/sim/time/sun-angle-rad</property>
31 </difference>
32 </expression>
33 </input>
34 <output>/environment/terminator-relative-position-m</output>
35 <type>gain</type>
36 <gain>6303363.70409</gain>
37 </filter>
38
39 <filter>
40 <name>LocalWeather:eye-altitude</name>
41 <input>
42 <property>/position/altitude-ft</property>
43 </input>
44 <output>/sim/rendering/eye-altitude-m</output>
45 <type>gain</type>
46 <gain>0.30480</gain>
47 </filter>
48
49 <!-- Properties used by the atmospheric scattering shader, when not being set directly
50 by Advanced Weather -->
51
52 <filter>
53 <!-- Ground visibility. Same as lowest boundary layer. -->
54 <name>EnvironmentInterpolator:AtmosphericShader:ground-visibility-m</name>
55 <type>gain</type>
56 <enable>
57 <condition>
58 <not>
59 <property>/nasal/local_weather/enabled</property>
60 <value>true</value>
61 </not>
62 </condition>
63 </enable>
64 <input>/environment/config/boundary/entry[0]/visibility-m</input>
65 <output>/environment/ground-visibility-m</output>
66 </filter>
67
68 <filter>
69 <!-- Ground haze level - assumed to be up to the lowest cloud layer. -->
70 <name>EnvironmentInterpolator:AtmosphericShader:GroundHazeThickness</name>
71 <type>gain</type>
72 <enable>
73 <condition>
74 <not>
75 <property>/nasal/local_weather/enabled</property>
76 <value>true</value>
77 </not>
78 </condition>
79 </enable>
80 <input>
81 <expression>
82 <sum>
83 <property>/environment/clouds/layer[0]/elevation-ft</property>
84 <property>/environment/clouds/layer[0]/thickness-ft</property>
85 </sum>
86 </expression>
87 </input>
88 <gain>
89 <!-- feet to meters -->
90 <value>0.3048</value>
91 </gain>
92 <u_min>
93 <value>0</value>
94 </u_min>
95 <u_max>
96 <!-- haze maxes out at 6000ft. Could probably do something using lapse rates instead -->
97 <value>2000</value>
98 </u_max>
99 <output>/environment/ground-haze-thickness-m</output>
100 </filter>
101
102 <!-- Build up the ground level scattering from 1 for clear skies to 0.6 for overcast -->
103 <filter>
104 <name>EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Clear</name>
105 <type>gain</type>
106 <enable>
107 <condition>
108 <and>
109 <not>
110 <property>/nasal/local_weather/enabled</property>
111 <value>true</value>
112 </not>
113 <equals>
114 <property>/environment/clouds/layer[0]/coverage</property>
115 <value>clear</value>
116 </equals>
117 </and>
118 </condition>
119 </enable>
120 <input>
121 <value>1</value>
122 </input>
123 <output>/environment/surface/ground-scattering</output>
124 </filter>
125
126 <filter>
127 <name>EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Few</name>
128 <type>gain</type>
129 <enable>
130 <condition>
131 <and>
132 <not>
133 <property>/nasal/local_weather/enabled</property>
134 <value>true</value>
135 </not>
136 <equals>
137 <property>/environment/clouds/layer[0]/coverage</property>
138 <value>few</value>
139 </equals>
140 </and>
141 </condition>
142 </enable>
143 <input>
144 <value>0.9</value>
145 </input>
146 <output>/environment/surface/ground-scattering</output>
147 </filter>
148
149 <filter>
150 <name>EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Scattered</name>
151 <type>gain</type>
152 <enable>
153 <condition>
154 <and>
155 <not>
156 <property>/nasal/local_weather/enabled</property>
157 <value>true</value>
158 </not>
159 <equals>
160 <property>/environment/clouds/layer[0]/coverage</property>
161 <value>scattered</value>
162 </equals>
163 </and>
164 </condition>
165 </enable>
166 <input>
167 <value>0.8</value>
168 </input>
169 <output>/environment/surface/ground-scattering</output>
170 </filter>
171
172 <filter>
173 <name>EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Broken</name>
174 <type>gain</type>
175 <enable>
176 <condition>
177 <and>
178 <not>
179 <property>/nasal/local_weather/enabled</property>
180 <value>true</value>
181 </not>
182 <equals>
183 <property>/environment/clouds/layer[0]/coverage</property>
184 <value>broken</value>
185 </equals>
186 </and>
187 </condition>
188 </enable>
189 <input>
190 <value>0.7</value>
191 </input>
192 <output>/environment/surface/ground-scattering</output>
193 </filter>
194
195 <filter>
196 <name>EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Overcast</name>
197 <type>gain</type>
198 <enable>
199 <condition>
200 <and>
201 <not>
202 <property>/nasal/local_weather/enabled</property>
203 <value>true</value>
204 </not>
205 <equals>
206 <property>/environment/clouds/layer[0]/coverage</property>
207 <value>overcast</value>
208 </equals>
209 </and>
210 </condition>
211 </enable>
212 <input>
213 <value>0.6</value>
214 </input>
215 <output>/environment/surface/ground-scattering</output>
216 </filter>
217
218 <!-- TODO: Handle layers beyond the first -->
219
220 <!-- Set the scattering at the aircraft level -->
221
222 <filter>
223 <name>EnvironmentInterpolator:AtmosphericShader:Scattering:AircraftAboveLayer</name>
224 <type>gain</type>
225 <enable>
226 <condition>
227 <and>
228 <not>
229 <property>/nasal/local_weather/enabled</property>
230 <value>true</value>
231 </not>
232 <greater-than>
233 <property>/position/altitude-ft</property>
234 <expression>
235 <sum>
236 <property>/environment/clouds/layer[0]/elevation-ft</property>
237 <property>/environment/clouds/layer[0]/thickness-ft</property>
238 </sum>
239 </expression>
240 </greater-than>
241 </and>
242 </condition>
243 </enable>
244 <input>
245 <value>1</value>
246 </input>
247 <output>/rendering/scene/scattering</output>
248 </filter>
249
250 <filter>
251 <name>EnvironmentInterpolator:AtmosphericShader:Scattering:AircraftBelowLayer</name>
252 <type>gain</type>
253 <enable>
254 <condition>
255 <and>
256 <not>
257 <property>/nasal/local_weather/enabled</property>
258 <value>true</value>
259 </not>
260 <less-than-equals>
261 <property>/position/altitude-ft</property>
262 <expression>
263 <sum>
264 <property>/environment/clouds/layer[0]/elevation-ft</property>
265 <property>/environment/clouds/layer[0]/thickness-ft</property>
266 </sum>
267 </expression>
268 </less-than-equals>
269 </and>
270 </condition>
271 </enable>
272 <input>/environment/surface/ground-scattering</input>
273 <output>/rendering/scene/scattering</output>
274 </filter>
275
276 <!-- Clouds self-shading -->
277 <filter>
278 <name>EnvironmentInterpolator:AtmosphericShader:CloudSelfShading</name>
279 <type>gain</type>
280 <enable>
281 <condition>
282 <not>
283 <property>/nasal/local_weather/enabled</property>
284 <value>true</value>
285 </not>
286 </condition>
287 </enable>
288 <input>
289 <!-- TODO : Make this sun-angle dependent -->
290 <value>1.0</value>
291 </input>
292 <output>/environment/cloud-self-shading</output>
293 </filter>
294
295 <!-- Skydome parameters - /sim/rendering/[mie|rayleigh|dome-density] -->
296 <filter>
297 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:VisFactor</name>
298 <type>gain</type>
299 <enable>
300 <condition>
301 <not>
302 <property>/nasal/local_weather/enabled</property>
303 <value>true</value>
304 </not>
305 </condition>
306 </enable>
307 <input>
308 <expression>
309 <product>
310 <difference>
311 <property>/environment/visibility-m</property>
312 <value>30000</value>
313 </difference>
314 <value>0.000011111</value>
315 </product>
316 </expression>
317 </input>
318 <u_min>0.0</u_min>
319 <u_max>1.0</u_max>
320 <output>/sim/rendering/skydome-vis-factor</output>
321 </filter>
322
323 <filter>
324 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleigh:Low</name>
325 <type>gain</type>
326 <enable>
327 <condition>
328 <and>
329 <not>
330 <property>/nasal/local_weather/enabled</property>
331 <value>true</value>
332 </not>
333 <less-than>
334 <property>/position/altitude-ft</property>
335 <value>36000</value>
336 </less-than>
337 </and>
338 </condition>
339 </enable>
340 <input>
341 <expression>
342 <difference>
343 <value>0.0003</value>
344 <product>
345 <property>/sim/rendering/skydome-vis-factor</property>
346 <value>0.0001</value>
347 </product>
348 </difference>
349 </expression>
350 </input>
351 <output>/sim/rendering/rayleigh-no-polution</output>
352 </filter>
353
354 <filter>
355 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleigh:Medium</name>
356 <type>gain</type>
357 <enable>
358 <condition>
359 <and>
360 <not>
361 <property>/nasal/local_weather/enabled</property>
362 <value>true</value>
363 </not>
364 <greater-than>
365 <property>/position/altitude-ft</property>
366 <value>36000</value>
367 </greater-than>
368 <less-than>
369 <property>/position/altitude-ft</property>
370 <value>85000</value>
371 </less-than>
372 </and>
373 </condition>
374 </enable>
375 <input>
376 <expression>
377 <difference>
378 <difference>
379 <value>0.0003</value>
380 <product>
381 <property>/sim/rendering/skydome-vis-factor</property>
382 <value>0.0001</value>
383 </product>
384 </difference>
385 <product>
386 <difference>
387 <property>/position/altitude-ft</property>
388 <value>36000</value>
389 </difference>
390 <value>0.000000002</value>
391 </product>
392 </difference>
393 </expression>
394 </input>
395 <output>/sim/rendering/rayleigh-no-polution</output>
396 </filter>
397
398 <filter>
399 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleigh:High</name>
400 <type>gain</type>
401 <enable>
402 <condition>
403 <and>
404 <not>
405 <property>/nasal/local_weather/enabled</property>
406 <value>true</value>
407 </not>
408 <greater-than>
409 <property>/position/altitude-ft</property>
410 <value>85000</value>
411 </greater-than>
412 </and>
413 </condition>
414 </enable>
415 <input>
416 <expression>
417 <difference>
418 <value>0.0002</value>
419 <product>
420 <property>/sim/rendering/skydome-vis-factor</property>
421 <value>0.0001</value>
422 </product>
423 </difference>
424 </expression>
425 </input>
426 <output>/sim/rendering/rayleigh-no-polution</output>
427 </filter>
428
429 <filter>
430 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleight:Polution:Low</name>
431 <type>gain</type>
432 <enable>
433 <condition>
434 <and>
435 <not>
436 <property>/nasal/local_weather/enabled</property>
437 <value>true</value>
438 </not>
439 <less-than-equals>
440 <property>/position/altitude-ft</property>
441 <expression>
442 <sum>
443 <property>/environment/clouds/layer[0]/elevation-ft</property>
444 <property>/environment/clouds/layer[0]/thickness-ft</property>
445 </sum>
446 </expression>
447 </less-than-equals>
448 </and>
449 </condition>
450 </enable>
451 <input>
452 <expression>
453 <sum>
454 <property>/sim/rendering/rayleigh-no-polution</property>
455 <product>
456 <property>/environment/air-pollution-norm</property>
457 <value>0.0003</value>
458 </product>
459 <product>
460 <property>/environment/air-pollution-norm</property>
461 <value>0.0004</value>
462 <difference>
463 <value>1.0</value>
464 <product>
465 <div>
466 <property>/position/altitude-ft</property>
467 <sum>
468 <property>/environment/clouds/layer[0]/elevation-ft</property>
469 <property>/environment/clouds/layer[0]/thickness-ft</property>
470 <value>1.0</value><!-- to avoid divide by 0 exceptions -->
471 </sum>
472 </div>
473 <div>
474 <property>/position/altitude-ft</property>
475 <sum>
476 <property>/environment/clouds/layer[0]/elevation-ft</property>
477 <property>/environment/clouds/layer[0]/thickness-ft</property>
478 <value>1.0</value><!-- to avoid divide by 0 exceptions -->
479 </sum>
480 </div>
481 </product>
482 </difference>
483 </product>
484 </sum>
485 </expression>
486 </input>
487 <output>/sim/rendering/rayleigh</output>
488 </filter>
489
490 <filter>
491 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleight:Polution:High</name>
492 <type>gain</type>
493 <enable>
494 <condition>
495 <and>
496 <not>
497 <property>/nasal/local_weather/enabled</property>
498 <value>true</value>
499 </not>
500 <greater-than>
501 <property>/position/altitude-ft</property>
502 <expression>
503 <sum>
504 <property>/environment/clouds/layer[0]/elevation-ft</property>
505 <property>/environment/clouds/layer[0]/thickness-ft</property>
506 </sum>
507 </expression>
508 </greater-than>
509 </and>
510 </condition>
511 </enable>
512 <input>
513 <expression>
514 <sum>
515 <property>/sim/rendering/rayleigh-no-polution</property>
516 <product>
517 <property>/environment/air-pollution-norm</property>
518 <value>0.0003</value>
519 </product>
520 </sum>
521 </expression>
522 </input>
523 <output>/sim/rendering/rayleigh</output>
524 </filter>
525
526 <filter>
527 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Mie:Low</name>
528 <type>gain</type>
529 <enable>
530 <condition>
531 <and>
532 <not>
533 <property>/nasal/local_weather/enabled</property>
534 <value>true</value>
535 </not>
536 <less-than>
537 <property>/position/altitude-ft</property>
538 <value>36000</value>
539 </less-than>
540 </and>
541 </condition>
542 </enable>
543 <input>
544 <expression>
545 <difference>
546 <value>0.005</value>
547 <product>
548 <property>/sim/rendering/skydome-vis-factor</property>
549 <value>0.002</value>
550 </product>
551 </difference>
552 </expression>
553 </input>
554 <output>/sim/rendering/mie</output>
555 </filter>
556
557 <filter>
558 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Mie:Medium</name>
559 <type>gain</type>
560 <enable>
561 <condition>
562 <and>
563 <not>
564 <property>/nasal/local_weather/enabled</property>
565 <value>true</value>
566 </not>
567 <greater-than>
568 <property>/position/altitude-ft</property>
569 <value>36000</value>
570 </greater-than>
571 <less-than>
572 <property>/position/altitude-ft</property>
573 <value>85000</value>
574 </less-than>
575 </and>
576 </condition>
577 </enable>
578 <input>
579 <expression>
580 <difference>
581 <difference>
582 <value>0.005</value>
583 <product>
584 <property>/sim/rendering/skydome-vis-factor</property>
585 <value>0.002</value>
586 </product>
587 </difference>
588 <product>
589 <difference>
590 <property>/position/altitude-ft</property>
591 <value>36000</value>
592 </difference>
593 <value>0.00000004</value>
594 </product>
595 </difference>
596 </expression>
597 </input>
598 <output>/sim/rendering/mie</output>
599 </filter>
600
601 <filter>
602 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Mie:High</name>
603 <type>gain</type>
604 <enable>
605 <condition>
606 <and>
607 <not>
608 <property>/nasal/local_weather/enabled</property>
609 <value>true</value>
610 </not>
611 <greater-than>
612 <property>/position/altitude-ft</property>
613 <value>85000</value>
614 </greater-than>
615 </and>
616 </condition>
617 </enable>
618 <input>
619 <expression>
620 <difference>
621 <value>0.003</value>
622 <product>
623 <property>/sim/rendering/skydome-vis-factor</property>
624 <value>0.002</value>
625 </product>
626 </difference>
627 </expression>
628 </input>
629 <output>/sim/rendering/mie</output>
630 </filter>
631
632 <!-- Density -->
633
634 <filter>
635 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Density:Low</name>
636 <type>gain</type>
637 <enable>
638 <condition>
639 <and>
640 <not>
641 <property>/nasal/local_weather/enabled</property>
642 <value>true</value>
643 </not>
644 <less-than-equals>
645 <property>/position/altitude-ft</property>
646 <expression>
647 <sum>
648 <property>/environment/clouds/layer[0]/elevation-ft</property>
649 <property>/environment/clouds/layer[0]/thickness-ft</property>
650 </sum>
651 </expression>
652 </less-than-equals>
653 </and>
654 </condition>
655 </enable>
656 <input>
657 <expression>
658 <sum>
659 <value>0.3</value>
660 <product>
661 <property>/environment/air-pollution-norm</property>
662 <value>0.05</value>
663 </product>
664 <product>
665 <property>/environment/air-pollution-norm</property>
666 <value>0.05</value>
667 <difference>
668 <value>1.0</value>
669 <product>
670 <div>
671 <property>/position/altitude-ft</property>
672 <sum>
673 <property>/environment/clouds/layer[0]/elevation-ft</property>
674 <property>/environment/clouds/layer[0]/thickness-ft</property>
675 <value>1.0</value><!-- to avoid divide by 0 exceptions -->
676 </sum>
677 </div>
678 <div>
679 <property>/position/altitude-ft</property>
680 <sum>
681 <property>/environment/clouds/layer[0]/elevation-ft</property>
682 <property>/environment/clouds/layer[0]/thickness-ft</property>
683 <value>1.0</value><!-- to avoid divide by 0 exceptions -->
684 </sum>
685 </div>
686 </product>
687 </difference>
688 </product>
689 </sum>
690 </expression>
691 </input>
692 <output>/sim/rendering/dome-density</output>
693 </filter>
694
695 <filter>
696 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:Density:High</name>
697 <type>gain</type>
698 <enable>
699 <condition>
700 <and>
701 <not>
702 <property>/nasal/local_weather/enabled</property>
703 <value>true</value>
704 </not>
705 <greater-than>
706 <property>/position/altitude-ft</property>
707 <expression>
708 <sum>
709 <property>/environment/clouds/layer[0]/elevation-ft</property>
710 <property>/environment/clouds/layer[0]/thickness-ft</property>
711 </sum>
712 </expression>
713 </greater-than>
714 </and>
715 </condition>
716 </enable>
717 <input>
718 <expression>
719 <sum>
720 <value>0.3</value>
721 <product>
722 <property>/environment/air-pollution-norm</property>
723 <value>0.05</value>
724 </product>
725 </sum>
726 </expression>
727 </input>
728 <output>/sim/rendering/dome-density</output>
729 </filter>
730
731 <!-- Mean elevation. No easy way to do this, so we'll just use the altitude of the nearest METAR station -->
732 <filter>
733 <name>EnvironmentInterpolator:AtmosphericShader:Skydome:MeanElevation</name>
734 <type>gain</type>
735 <enable>
736 <condition>
737 <not>
738 <property>/nasal/local_weather/enabled</property>
739 <value>true</value>
740 </not>
741 </condition>
742 </enable>
743 <input>
744 <expression>
745 <product>
746 <property>/environment/metar[0]/station-elevation-ft</property>
747 <value>0.3048</value>
748 </product>
749 </expression>
750 </input>
751 <output>/environment/mean-terrain-elevation-m</output>
752 </filter>
753
754 <!-- Tree "season" - used to determine whether to display the trees in summer or winter foliage -->
755 <filter>
756 <name>EnvironmentInterpolator:Trees:Season:Summer</name>
757 <type>gain</type>
758 <enable>
759 <condition>
760 <not>
761 <or>
762 <equals>
763 <property>sim/startup/season</property>
764 <value>winter</value>
765 </equals>
766 <greater-than>
767 <property>/environment/season</property>
768 <value>1.5</value>
769 </greater-than>
770 </or>
771 </not>
772 </condition>
773 </enable>
774 <input>
775 <value>0.0</value>
776 </input>
777 <output>/environment/tree-season</output>
778 </filter>
779
780
781 <filter>
782 <name>EnvironmentInterpolator:Trees:Season:Winter</name>
783 <type>gain</type>
784 <enable>
785 <condition>
786 <or>
787 <equals>
788 <property>sim/startup/season</property>
789 <value>winter</value>
790 </equals>
791 <greater-than>
792 <property>/environment/season</property>
793 <value>1.5</value>
794 </greater-than>
795 </or>
796 </condition>
797 </enable>
798 <input>
799 <value>1.0</value>
800 </input>
801 <output>/environment/tree-season</output>
802 </filter>
803
804 <!-- Lighting parameter - used for city and road lighting during night -->
805
806 <filter>
807 <name>EnvironmentInterpolator:OSM:Lightmap:Night</name>
808 <type>gain</type>
809 <enable>
810 <condition>
811 <greater-than>
812 <property>/sim/time/sun-angle-rad</property>
813 <value>1.45</value>
814 </greater-than>
815 </condition>
816 </enable>
817 <input>
818 <value>1.0</value>
819 </input>
820 <output>/environment/lightmap-factor</output>
821 </filter>
822
823 <filter>
824 <name>EnvironmentInterpolator:OSM:Lightmap:Day</name>
825 <type>gain</type>
826 <enable>
827 <condition>
828 <not>
829 <greater-than>
830 <property>/sim/time/sun-angle-rad</property>
831 <value>1.45</value>
832 </greater-than>
833 </not>
834 </condition>
835 </enable>
836 <input>
837 <value>0.0</value>
838 </input>
839 <output>/environment/lightmap-factor</output>
840 </filter>
841
842 <!-- Daily variation of road traffic for the road shader -->
843
844
845 <filter>
846 <name>EnvironmentInterpolator:OSM:LocalTime</name>
847 <input>
848 <expression>
849 <sum>
850 <property>/sim/time/utc/day-seconds</property>
851 <property>/sim/time/local-offset</property>
852 </sum>
853 </expression>
854 </input>
855 <output>/sim/time/local-day-seconds</output>
856 <type>gain</type>
857 <gain>1.0</gain>
858 </filter>
859
860 <filter>
861 <name>EnvironmentInterpolator:OSM:LocalTimeOverrun</name>
862 <enable>
863 <condition>
864 <greater-than>
865 <property>/sim/time/local-day-seconds</property>
866 <value>86400.0</value>
867 </greater-than>
868 </condition>
869 </enable>
870 <input>
871 <expression>
872 <difference>
873 <property>/sim/time/local-day-seconds</property>
874 <value>86400</value>
875 </difference>
876 </expression>
877 </input>
878 <output>/sim/time/local-day-seconds</output>
879 <type>gain</type>
880 <gain>1.0</gain>
881 </filter>
882
883 <filter>
884 <name>EnvironmentInterpolator:OSM:LocalTimeUnderrun</name>
885 <enable>
886 <condition>
887 <less-than>
888 <property>/sim/time/local-day-seconds</property>
889 <value>0.0</value>
890 </less-than>
891 </condition>
892 </enable>
893 <input>
894 <expression>
895 <sum>
896 <property>/sim/time/local-day-seconds</property>
897 <value>86400</value>
898 </sum>
899 </expression>
900 </input>
901 <output>/sim/time/local-day-seconds</output>
902 <type>gain</type>
903 <gain>1.0</gain>
904 </filter>
905
906 <filter>
907 <name>EnvironmentInterpolator:OSM:TrafficDensity</name>
908 <type>gain</type>
909 <input>
910 <expression>
911 <table>
912 <property>/sim/time/local-day-seconds</property>
913 <entry><ind>0.0</ind><dep>0.32</dep></entry>
914 <entry><ind>3600.0</ind><dep>0.21</dep></entry>
915 <entry><ind>7200.0</ind><dep>0.18</dep></entry>
916 <entry><ind>10800.0</ind><dep>0.16</dep></entry>
917 <entry><ind>14400.0</ind><dep>0.19</dep></entry>
918 <entry><ind>18000.0</ind><dep>0.21</dep></entry>
919 <entry><ind>21600.0</ind><dep>0.45</dep></entry>
920 <entry><ind>25200.0</ind><dep>0.77</dep></entry>
921 <entry><ind>28800.0</ind><dep>1.30</dep></entry>
922 <entry><ind>32400.0</ind><dep>1.44</dep></entry>
923 <entry><ind>36000.0</ind><dep>1.04</dep></entry>
924 <entry><ind>39600.0</ind><dep>0.95</dep></entry>
925 <entry><ind>43200.0</ind><dep>1.03</dep></entry>
926 <entry><ind>46800.0</ind><dep>1.04</dep></entry>
927 <entry><ind>50400.0</ind><dep>1.10</dep></entry>
928 <entry><ind>54000.0</ind><dep>1.30</dep></entry>
929 <entry><ind>57600.0</ind><dep>1.50</dep></entry>
930 <entry><ind>61200.0</ind><dep>1.26</dep></entry>
931 <entry><ind>64800.0</ind><dep>0.92</dep></entry>
932 <entry><ind>68400.0</ind><dep>0.72</dep></entry>
933 <entry><ind>72000.0</ind><dep>0.56</dep></entry>
934 <entry><ind>75600.0</ind><dep>0.52</dep></entry>
935 <entry><ind>79200.0</ind><dep>0.45</dep></entry>
936 <entry><ind>82800.0</ind><dep>0.36</dep></entry>
937 </table>
938 </expression>
939 </input>
940 <output>/sim/rendering/osm/road-traffic-daily-variation</output>
941 </filter>
942
943 <!-- illumination setting for precipitation particles -->
944
945 <filter>
946 <name>EnvironmentInterpolator:Precipitation:Illumination</name>
947 <type>gain</type>
948 <enable>
949 <condition>
950 <property>/environment/precipitation-control/detailed-precipitation</property>
951 </condition>
952 </enable>
953 <input>
954 <expression>
955 <sum>
956 <property>/rendering/scene/diffuse/red</property>
957 <value>0.3</value>
958 <product>
959 <property>/sim/rendering/als-secondary-lights/use-searchlight</property>
960 <value>0.3</value>
961 </product>
962 <product>
963 <property>/sim/rendering/als-secondary-lights/use-landing-light</property>
964 <value>0.3</value>
965 </product>
966 <product>
967 <property>/sim/rendering/als-secondary-lights/use-alt-landing-light</property>
968 <value>0.3</value>
969 </product>
970 </sum>
971 </expression>
972 </input>
973 <output>/environment/precipitation-control/illumination</output>
974 <min>0.0</min>
975 <max>1.0</max>
976 </filter>
977
978
979 <filter>
980 <name>EnvironmentInterpolator:Precipitation:SurfaceWetness</name>
981 <type>noise-spike</type>
982 <max-rate-of-change>0.004</max-rate-of-change>
983 <input>/environment/rain-norm</input>
984 <output>/environment/surface/wetness</output>
985 <min><property>/environment/surface/wetness-set</property></min>
986 <max>1.0</max>
987 </filter>
988
989 <filter>
990 <name>EnvironmentInterpolator:Aurora:LatitudeDep</name>
991 <type>gain</type>
992 <gain>1.0</gain>
993 <input>
994 <expression>
995 <pow>
996 <div>
997 <abs>
998 <property>/position/latitude-deg</property>
999 </abs>
1000 <value>90</value>
1001 </div>
1002 <value>2.0</value>
1003 </pow>
1004 </expression>
1005 </input>
1006 <output>/environment/aurora/latitude-scale</output>
1007 </filter>
1008
1009 <filter>
1010 <name>EnvironmentInterpolator:Aurora:VerticalSize</name>
1011 <type>gain</type>
1012 <gain>1.0</gain>
1013 <input>
1014 <expression>
1015 <max>
1016 <pow>
1017 <property>/environment/aurora/latitude-scale</property>
1018 <value>2.0</value>
1019 </pow>
1020 <value>0.1</value>
1021 </max>
1022 </expression>
1023 </input>
1024 <output>/environment/aurora/vsize</output>
1025 </filter>
1026
1027 <filter>
1028 <name>EnvironmentInterpolator:Aurora:HorizontalSize</name>
1029 <type>gain</type>
1030 <gain>1.0</gain>
1031 <input>
1032 <expression>
1033 <max>
1034 <property>/environment/aurora/latitude-scale</property>
1035 <value>0.1</value>
1036 </max>
1037 </expression>
1038 </input>
1039 <output>/environment/aurora/hsize</output>
1040 </filter>
1041
1042 <filter>
1043 <name>EnvironmentInterpolator:Aurora:Strength</name>
1044 <type>gain</type>
1045 <gain>1.0</gain>
1046 <input>
1047 <expression>
1048 <product>
1049 <pow>
1050 <property>/environment/aurora/latitude-scale</property>
1051 <value>0.5</value>
1052 </pow>
1053 <property>/environment/aurora/set-strength</property>
1054 </product>
1055 </expression>
1056 </input>
1057 <output>/environment/aurora/strength</output>
1058 </filter>
1059
1060
1061
1062 </PropertyList>