diff --git a/Nasal/local_weather/cloud_definitions.nas b/Nasal/local_weather/cloud_definitions.nas index 4765380dd..be72cbf2f 100644 --- a/Nasal/local_weather/cloud_definitions.nas +++ b/Nasal/local_weather/cloud_definitions.nas @@ -322,7 +322,7 @@ else if (type == "Stratocumulus bottom"){ cloudAssembly.num_tex_y = 1; #characterize the cloud - cloudAssembly.bottom_shade = 0.7; + cloudAssembly.bottom_shade = 0.4; cloudAssembly.n_sprites = 3; cloudAssembly.min_width = 1200.0; cloudAssembly.max_width = 1600.0; diff --git a/Nasal/local_weather/compat_layer.nas b/Nasal/local_weather/compat_layer.nas index 85553b565..338c89929 100644 --- a/Nasal/local_weather/compat_layer.nas +++ b/Nasal/local_weather/compat_layer.nas @@ -721,8 +721,10 @@ var p = props.Node.new({ "layer" : 0, "max-sprite-height-m": c.max_height, "num-sprites": c.n_sprites, "min-bottom-lighting-factor": c.bottom_shade, + "max-bottom-lighting-factor": c.bottom_shade, "min-middle-lighting-factor": c.middle_shade, "min-top-lighting-factor": c.top_shade, + "max-top-lighting-factor": c.top_shade, "alpha-factor": c.alpha_factor, "min-shade-lighting-factor": c.bottom_shade, "texture": c.texture_sheet, diff --git a/Nasal/local_weather/local_weather.nas b/Nasal/local_weather/local_weather.nas index 564e1fd21..7d87b4b3f 100644 --- a/Nasal/local_weather/local_weather.nas +++ b/Nasal/local_weather/local_weather.nas @@ -1889,8 +1889,10 @@ if (edge_bias > 0.0) {height_bias = height_bias + 15.0 *edge_bias + 20.0 * rand var btype = "Congestus bottom"; var n_b = 6; height_bias = 1.0; - + var top_shade_store = local_weather.top_shade; + if (top_shade_store > 0.6) {local_weather.top_shade = 0.6;} create_streak(btype,lat,lon, alt -offset_map["Congestus"] -900.0, 100.0,n_b,0.0,edge,0.3*x,1,0.0,0.0,0.3*y,alpha,1.0); + local_weather.top_shade = top_shade_store; if (local_weather.cloud_shadow_flag == 1) { @@ -1917,7 +1919,10 @@ if (edge_bias > 0.0) {height_bias = height_bias + 15.0 *edge_bias + 20.0 * rand create_streak(type,lat,lon, alt+ 0.5* (height* height_bias )-offset_map["Cumulus"], height * height_bias,n,0.0,edge,x,1,0.0,0.0,y,alpha,1.0); height_bias = 1.0; + var top_shade_store = local_weather.top_shade; + if (top_shade_store > 0.6) {local_weather.top_shade = 0.6;} create_streak(btype,lat,lon, alt -offset_map["Cumulus"] - 200.0, 100.0,n_b,0.0,edge,0.3*x,1,0.0,0.0,0.3*y,alpha,1.0); + local_weather.top_shade = top_shade_store; if (local_weather.cloud_shadow_flag == 1) { @@ -2766,10 +2771,13 @@ for (var i=0; i 0.6) {local_weather.top_shade = 0.6;} if (thread_flag == 1) {create_cloud_vec(path, lat, lon, alt, 0.0);} else {compat_layer.create_cloud(path, lat, lon, alt, 0.0);} + local_weather.top_shade = top_shade_store; }