diff --git a/Environment/local-weather-rules.xml b/Environment/local-weather-rules.xml index 36cf72347..457a730e0 100644 --- a/Environment/local-weather-rules.xml +++ b/Environment/local-weather-rules.xml @@ -36,4 +36,13 @@ 6303363.70409 + + LocalWeather:eye-altitude + + /position/altitude-ft + + /sim/rendering/eye-altitude-m + gain + 0.30480 + diff --git a/Nasal/local_weather/local_weather.nas b/Nasal/local_weather/local_weather.nas index c6203c9cd..d3cc8e41d 100644 --- a/Nasal/local_weather/local_weather.nas +++ b/Nasal/local_weather/local_weather.nas @@ -4570,7 +4570,7 @@ setprop(lw~"effect-volumes/number-active-sat",0); # setprop(lw~"config/max-vis-range-m", 120000.0); setprop(lw~"config/temperature-offset-degc", 0.0); -setprop("/sim/rendering/eye-altitude-m", getprop("/position/altitude-ft") * ft_to_m); +#setprop("/sim/rendering/eye-altitude-m", getprop("/position/altitude-ft") * ft_to_m); # create properties for tile management diff --git a/Nasal/local_weather/weather_dynamics.nas b/Nasal/local_weather/weather_dynamics.nas index 5c262042b..7abaa0000 100644 --- a/Nasal/local_weather/weather_dynamics.nas +++ b/Nasal/local_weather/weather_dynamics.nas @@ -122,11 +122,9 @@ time_lw = time_lw + dt_lw; #var terminator_offset = sun_angle / 0.017451 * 110000.0;# + 250000.0; #setprop("/environment/terminator-relative-position-m",terminator_offset); -var viewpos = geo.viewer_position(); - +# var viewpos = geo.viewer_position(); # setprop("/environment/alt-in-haze-m", getprop("/environment/ground-haze-thickness-m")-viewpos.alt()); - -setprop("/sim/rendering/eye-altitude-m", viewpos.alt()); +# setprop("/sim/rendering/eye-altitude-m", viewpos.alt());