1
0
Fork 0
fgdata/Environment/local-weather-rules.xml
Torsten Dreyer 352bbd3cfa missing properties and a terminator
- define missing property-definitions for the skydome shader
- introduce a property rule for terminator-relative-position-m
  for local weather
2012-01-20 19:23:02 +01:00

39 lines
1.2 KiB
XML

<?xml version="1.0" ?>
<!--
This file is part of FlightGear, the free flight simulator
http://www.flightgear.org/
Copyright (C) 2012 Torsten Dreyer, Torsten (at) t3r _dot_ de
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-->
<!--
Compute local weather related properties
-->
<PropertyList>
<!-- (pi/2 - /sim/time/sun-angle-rad) / 0.017451 * 110000.0 -->
<filter>
<name>LocalWeather:terminator-relative-position</name>
<input>
<expression>
<difference>
<value>1.57079632675</value>
<property>/sim/time/sun-angle-rad</property>
</difference>
</expression>
</input>
<output>/environment/terminator-relative-position-m</output>
<type>gain</type>
<gain>6303363.70409</gain>
</filter>
</PropertyList>