diff --git a/Nasal/local_weather/compat_layer.nas b/Nasal/local_weather/compat_layer.nas index 7247c2d7c..02382c673 100644 --- a/Nasal/local_weather/compat_layer.nas +++ b/Nasal/local_weather/compat_layer.nas @@ -163,15 +163,14 @@ foreach (var l; layers) -# we store that information ourselves, so this should be zero, but rain forces us to go for an offset +# we store that information ourselves, so this should be zero setprop("/environment/clouds/layer[0]/elevation-ft",0.0); # layer wrapping off setprop("/sim/rendering/clouds3d-wrap",0); - - - +# Basic Weather rain altitude limit off +props.globals.getNode("/environment/params/use-external-precipitation-level").setBoolValue("true"); } diff --git a/Nasal/local_weather/local_weather.nas b/Nasal/local_weather/local_weather.nas index 5d94557d5..5134ca17c 100644 --- a/Nasal/local_weather/local_weather.nas +++ b/Nasal/local_weather/local_weather.nas @@ -3374,6 +3374,11 @@ realistic_visibility_flag = getprop(lw~"config/realistic-visibility-flag"); detailed_terrain_interaction_flag = getprop(lw~"config/detailed-terrain-interaction-flag"); scattering_shader_flag = getprop("/sim/rendering/shaders/skydome"); +# also initialize menu entries + +air_pollution_norm = getprop("/environment/air-pollution-norm"); + + } ########################################################### @@ -4102,11 +4107,11 @@ debug.dump(geodinfo(lat, lon)); -#var info = {}; - -#for (var i = 0; i< 100000; i=i+1) -# { -# info = geodinfo(lat, lon); +#var info = {}; + +#for (var i = 0; i< 100000; i=i+1) +# { +# info = geodinfo(lat, lon); # }