78 lines
2.5 KiB
XML
78 lines
2.5 KiB
XML
|
<?xml version="1.0"?>
|
||
|
|
||
|
<!--
|
||
|
|
||
|
c172p glass effects.
|
||
|
|
||
|
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.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program; if not, write to the Free Software
|
||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
|
||
|
-->
|
||
|
|
||
|
<system name="glass-effect1">
|
||
|
|
||
|
<channel name="rain">
|
||
|
|
||
|
<fcs_function name="glass-effects/airspeed-clamped-sqrt">
|
||
|
<function>
|
||
|
<sqrt>
|
||
|
<quotient>
|
||
|
<min>
|
||
|
<property>/velocities/airspeed-kt</property>
|
||
|
<value>40</value>
|
||
|
</min>
|
||
|
<value>40</value>
|
||
|
</quotient>
|
||
|
</sqrt>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="glass-effects/splashx">
|
||
|
<function>
|
||
|
<difference>
|
||
|
<value>-0.1</value>
|
||
|
<product>
|
||
|
<value>2.0</value>
|
||
|
<property>/fdm/jsbsim/glass-effects/airspeed-clamped-sqrt</property>
|
||
|
</product>
|
||
|
</difference>
|
||
|
</function>
|
||
|
<output>/environment/aircraft-effects/splash-vector-x</output>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="glass-effects/splashy">
|
||
|
<function>
|
||
|
<value>0.0</value>
|
||
|
</function>
|
||
|
<output>/environment/aircraft-effects/splash-vector-y</output>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="glass-effects/splashz">
|
||
|
<function>
|
||
|
<difference>
|
||
|
<value>1.0</value>
|
||
|
<product>
|
||
|
<value>1.35</value>
|
||
|
<property>/fdm/jsbsim/glass-effects/airspeed-clamped-sqrt</property>
|
||
|
</product>
|
||
|
</difference>
|
||
|
</function>
|
||
|
<output>/environment/aircraft-effects/splash-vector-z</output>
|
||
|
</fcs_function>
|
||
|
|
||
|
|
||
|
</channel>
|
||
|
|
||
|
</system>
|