1
0
Fork 0

Improve rain drops on windshield effect

This commit is contained in:
Colin Geniet 2020-03-16 12:33:58 +01:00
parent b10a164a62
commit 9847ae8ea9

View file

@ -3,56 +3,54 @@
<!-- Copyright (c) 2019 Joshua Davidson (Octal450) --> <!-- Copyright (c) 2019 Joshua Davidson (Octal450) -->
<system name="glass-effect"> <system name="glass-effect">
<channel name="rain"> <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"> <fcs_function name="glass-effects/splashx">
<function> <function>
<difference> <table>
<value>-0.1</value> <independentVar>velocities/u-aero-fps</independentVar>
<product> <tableData>
<value>2.0</value> 0 0.01
<property>/fdm/jsbsim/glass-effects/airspeed-clamped-sqrt</property> 7 0.01
</product> 8 -0.01
</difference> 25 -0.5
50 -1.2
120 -2
</tableData>
</table>
</function> </function>
<output>/environment/aircraft-effects/splash-vector-x</output> <output>/environment/aircraft-effects/splash-vector-x</output>
</fcs_function> </fcs_function>
<fcs_function name="glass-effects/splashy"> <fcs_function name="glass-effects/splashy">
<function> <function>
<value>0.0</value> <table>
<independentVar>velocities/v-aero-fps</independentVar>
<tableData>
-25 -0.5
-8 0
8 0
25 0.5
</tableData>
</table>
</function> </function>
<output>/environment/aircraft-effects/splash-vector-y</output> <output>/environment/aircraft-effects/splash-vector-y</output>
</fcs_function> </fcs_function>
<fcs_function name="glass-effects/splashz"> <fcs_function name="glass-effects/splashz">
<function> <function>
<difference> <table>
<value>1.0</value> <independentVar>velocities/u-aero-fps</independentVar>
<product> <tableData>
<value>1.35</value> 0 1.2
<property>/fdm/jsbsim/glass-effects/airspeed-clamped-sqrt</property> 7 1.2
</product> 8 0.9
</difference> 25 0.9
50 -0.2
120 -0.5
</tableData>
</table>
</function> </function>
<output>/environment/aircraft-effects/splash-vector-z</output> <output>/environment/aircraft-effects/splash-vector-z</output>
</fcs_function> </fcs_function>
</channel> </channel>
</system> </system>