From 823510f0b4fd6c79a747c895b074e6ffd6f1b9ed Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 16 Apr 2013 22:09:44 +0100 Subject: [PATCH] Basic Weather integration with Atmospheric Shader. --- Environment/local-weather-rules.xml | 708 +++++++++++++++++++++++++++- 1 file changed, 707 insertions(+), 1 deletion(-) diff --git a/Environment/local-weather-rules.xml b/Environment/local-weather-rules.xml index 457a730e0..2e9b07e77 100644 --- a/Environment/local-weather-rules.xml +++ b/Environment/local-weather-rules.xml @@ -16,7 +16,7 @@ General Public License for more details. --> @@ -45,4 +45,710 @@ gain 0.30480 + + + + + + EnvironmentInterpolator:AtmosphericShader:ground-visibility-m + gain + + + + /nasal/local_weather/enabled + true + + + + /environment/config/boundary/entry[0]/visibility-m + /environment/ground-visibility-m + + + + + EnvironmentInterpolator:AtmosphericShader:GroundHazeThickness + gain + + + + /nasal/local_weather/enabled + true + + + + + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + 0.3048 + + + 0 + + + + 2000 + + /environment/ground-haze-thickness-m + + + + + EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Clear + gain + + + + + /nasal/local_weather/enabled + true + + + /environment/clouds/layer[0]/coverage + clear + + + + + + 1 + + /environment/surface/ground-scattering + + + + EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Few + gain + + + + + /nasal/local_weather/enabled + true + + + /environment/clouds/layer[0]/coverage + few + + + + + + 0.9 + + /environment/surface/ground-scattering + + + + EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Scattered + gain + + + + + /nasal/local_weather/enabled + true + + + /environment/clouds/layer[0]/coverage + scattered + + + + + + 0.8 + + /environment/surface/ground-scattering + + + + EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Broken + gain + + + + + /nasal/local_weather/enabled + true + + + /environment/clouds/layer[0]/coverage + broken + + + + + + 0.7 + + /environment/surface/ground-scattering + + + + EnvironmentInterpolator:AtmosphericShader:GroundScattering:0:Overcast + gain + + + + + /nasal/local_weather/enabled + true + + + /environment/clouds/layer[0]/coverage + overcast + + + + + + 0.6 + + /environment/surface/ground-scattering + + + + + + + + EnvironmentInterpolator:AtmosphericShader:Scattering:AircraftAboveLayer + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + + + 1 + + /rendering/scene/scattering + + + + EnvironmentInterpolator:AtmosphericShader:Scattering:AircraftBelowLayer + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + + /environment/surface/ground-scattering + /rendering/scene/scattering + + + + + EnvironmentInterpolator:AtmosphericShader:CloudSelfShading + gain + + + + /nasal/local_weather/enabled + true + + + + + + 1.0 + + /environment/cloud-self-shading + + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:VisFactor + gain + + + + /nasal/local_weather/enabled + true + + + + + + + + /environment/visibility-m + 30000 + + 0.000011111 + + + + 0.0 + 1.0 + /sim/rendering/skydome-vis-factor + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleigh:Low + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + 36000 + + + + + + + + 0.0003 + + /sim/rendering/skydome-vis-factor + 0.0001 + + + + + /sim/rendering/rayleigh-no-polution + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleigh:Medium + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + 36000 + + + /position/altitude-ft + 85000 + + + + + + + + + 0.0003 + + /sim/rendering/skydome-vis-factor + 0.0001 + + + + + /position/altitude-ft + 36000 + + 0.000000002 + + + + + /sim/rendering/rayleigh-no-polution + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleigh:High + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + 85000 + + + + + + + + 0.0002 + + /sim/rendering/skydome-vis-factor + 0.0001 + + + + + /sim/rendering/rayleigh-no-polution + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleight:Polution:Low + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + + + + + /sim/rendering/rayleigh-no-polution + + /environment/air-pollution-norm + 0.0003 + + + /environment/air-pollution-norm + 0.0004 + + 1.0 + +
+ /position/altitude-ft + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + 1.0 + +
+
+ /position/altitude-ft + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + 1.0 + +
+
+
+
+
+
+ + /sim/rendering/rayleigh +
+ + + EnvironmentInterpolator:AtmosphericShader:Skydome:Rayleight:Polution:High + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + + + + + /sim/rendering/rayleigh-no-polution + + /environment/air-pollution-norm + 0.0003 + + + + + /sim/rendering/rayleigh + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Mie:Low + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + 36000 + + + + + + + + 0.005 + + /sim/rendering/skydome-vis-factor + 0.002 + + + + + /sim/rendering/mie + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Mie:Medium + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + 36000 + + + /position/altitude-ft + 85000 + + + + + + + + + 0.005 + + /sim/rendering/skydome-vis-factor + 0.002 + + + + + /position/altitude-ft + 36000 + + 0.00000004 + + + + + /sim/rendering/mie + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Mie:High + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + 85000 + + + + + + + + 0.003 + + /sim/rendering/skydome-vis-factor + 0.002 + + + + + /sim/rendering/mie + + + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:Density:Low + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + + + + + 0.3 + + /environment/air-pollution-norm + 0.05 + + + /environment/air-pollution-norm + 0.05 + + 1.0 + +
+ /position/altitude-ft + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + 1.0 + +
+
+ /position/altitude-ft + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + 1.0 + +
+
+
+
+
+
+ + /sim/rendering/dome-density +
+ + + EnvironmentInterpolator:AtmosphericShader:Skydome:Density:High + gain + + + + + /nasal/local_weather/enabled + true + + + /position/altitude-ft + + + /environment/clouds/layer[0]/elevation-ft + /environment/clouds/layer[0]/thickness-ft + + + + + + + + + + 0.3 + + /environment/air-pollution-norm + 0.05 + + + + + /sim/rendering/dome-density + + + + + EnvironmentInterpolator:AtmosphericShader:Skydome:MeanElevation + gain + + + + /nasal/local_weather/enabled + true + + + + + + + /environment/metar[0]/station-elevation-ft + 0.3048 + + + + /environment/mean-terrain-elevation-m + +