diff --git a/Effects/runway-dds.eff b/Effects/runway-dds.eff new file mode 100644 index 000000000..e03790eec --- /dev/null +++ b/Effects/runway-dds.eff @@ -0,0 +1,11 @@ + + + Effects/runway-dds + Effects/runway + + + Textures/Runway/rwy-normalmap.dds + + 1.0 + + diff --git a/Effects/runway.eff b/Effects/runway.eff index 20b474fd8..562460dca 100644 --- a/Effects/runway.eff +++ b/Effects/runway.eff @@ -4,7 +4,7 @@ Effects/terrain-default - Textures.high/Runway/rwy-normalmap.dds + Textures/Runway/rwy-normalmap.png linear-mipmap-linear repeat repeat @@ -15,7 +15,7 @@ - + Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png @@ -41,7 +41,7 @@ normalized - Textures.high/Runway/rwy-reflect.png + Textures/Runway/rwy-reflect.png linear-mipmap-linear repeat repeat @@ -50,11 +50,10 @@ transparent smooth 0.01 - 0.01 - 0.15 - - -0.15 - 1 + 0.01 + 0.15 + -0.15 + 0.0 false back diff --git a/Environment/environment.xml b/Environment/environment.xml index a65419ee9..9b17450e7 100644 --- a/Environment/environment.xml +++ b/Environment/environment.xml @@ -330,7 +330,7 @@ - 60.0 + 0.05 diff --git a/Environment/interpolator.xml b/Environment/interpolator.xml index af1503b70..23b702670 100644 --- a/Environment/interpolator.xml +++ b/Environment/interpolator.xml @@ -26,9 +26,7 @@ EnvironmentInterpolator:temperature-sea-level-degc - - /environment/config/enabled - + /environment/config/enabled /environment/config/interpolated/temperature-sea-level-degc /environment/temperature-sea-level-degc @@ -39,9 +37,7 @@ EnvironmentInterpolator:dewpoint-sea-level-degc - - /environment/config/enabled - + /environment/config/enabled /environment/config/interpolated/dewpoint-sea-level-degc /environment/dewpoint-sea-level-degc @@ -58,9 +54,7 @@ noise-spike 0.03 - - /environment/config/enabled - + /environment/config/enabled /environment/config/interpolated/pressure-sea-level-inhg /environment/pressure-sea-level-inhg @@ -69,9 +63,7 @@ EnvironmentInterpolator:visibility-m - - /environment/config/enabled - + /environment/config/enabled @@ -91,9 +83,7 @@ EnvironmentInterpolator:wind-from-north - - /environment/config/enabled - + /environment/config/enabled @@ -103,16 +93,14 @@ /environment/config/interpolated/wind-from-north-fps /environment/wind-from-north-fps - exponential - 5 + noise-spike + 0.5 EnvironmentInterpolator:wind-from-east - - /environment/config/enabled - + /environment/config/enabled @@ -122,8 +110,8 @@ /environment/config/interpolated/wind-from-east-fps /environment/wind-from-east-fps - exponential - 5 + noise-spike + 0.5 @@ -138,16 +126,14 @@ /environment/wind-from-down-fps - exponential - 0.5 + noise-spike + 2.0 EnvironmentInterpolator:turbulence-raw-magnitude - - /environment/config/enabled - + /environment/config/enabled @@ -159,16 +145,14 @@ /environment/config/interpolated/turbulence/magnitude-norm /environment/turbulence/raw-magnitude-norm - exponential - 1 + noise-spike + 0.2 EnvironmentInterpolator:turbulence-magnitude - - /environment/config/enabled - + /environment/config/enabled @@ -186,9 +170,7 @@ EnvironmentInterpolator:turbulence-rate - - /environment/config/enabled - + /environment/config/enabled /environment/config/interpolated/turbulence/rate-hz /environment/turbulence/rate-hz @@ -205,16 +187,16 @@ EnvironmentInterpolator:wave:wind-from-east-fps /environment/config/boundary/entry[0]/wind-from-east-fps /environment/sea/surface/wind-from-east-fps - exponential - /environment/sea/config/wind-filter-time + noise-spike + /environment/sea/config/wind-filter-time EnvironmentInterpolator:wave:wind-from-north-fps /environment/config/boundary/entry[0]/wind-from-north-fps /environment/sea/surface/wind-from-north-fps - exponential - /environment/sea/config/wind-filter-time + noise-spike + /environment/sea/config/wind-filter-time MetarController:wind-from-north-fps - exponential - 30 + noise-spike + 1.0 /environment/metar/valid @@ -163,8 +163,8 @@ MetarController:wind-from-east-fps - exponential - 30 + noise-spike + 1.0 /environment/metar/valid @@ -396,8 +396,8 @@ MetarController:cloud-alpha - exponential - 5 + noise-spike + 0.2 /environment/metar/valid diff --git a/Shaders/bowwave.frag b/Shaders/bowwave.frag index b12c8b021..851c2a948 100644 --- a/Shaders/bowwave.frag +++ b/Shaders/bowwave.frag @@ -54,8 +54,8 @@ void relWind(out float rel_wind_speed_kts, out float rel_wind_from_rad) float rel_wind_speed_from_north_kts = WindN*fps2kts + speed_north_kts; //combine relative speeds north and east to get relative windspeed in kts - rel_wind_speed_kts = sqrt(pow(abs(rel_wind_speed_from_east_kts), 2) - + pow(abs(rel_wind_speed_from_north_kts), 2)); + rel_wind_speed_kts = sqrt(rel_wind_speed_from_east_kts*rel_wind_speed_from_east_kts + + rel_wind_speed_from_north_kts*rel_wind_speed_from_north_kts); //calculate the relative wind direction float rel_wind_from_deg = degrees(atan(rel_wind_speed_from_east_kts, rel_wind_speed_from_north_kts)); diff --git a/Shaders/water.frag b/Shaders/water.frag index 3392a4ec5..2d5345bb8 100644 --- a/Shaders/water.frag +++ b/Shaders/water.frag @@ -72,7 +72,7 @@ void main(void) //bool Status = true; - float windEffect = sqrt(pow(abs(WindE),2)+pow(abs(WindN),2)) * 0.6; //wind speed in kt + float windEffect = sqrt( WindE*WindE + WindN*WindN ) * 0.6; //wind speed in kt float windScale = 15.0/(3.0 + windEffect); //wave scale float windEffect_low = 0.3 + 0.7 * smoothstep(0.0, 5.0, windEffect); //low windspeed wave filter float waveRoughness = 0.05 + smoothstep(0.0, 20.0, windEffect); //wave roughness filter diff --git a/Shaders/water_sine.frag b/Shaders/water_sine.frag index 4d075251a..3cf7ec94b 100644 --- a/Shaders/water_sine.frag +++ b/Shaders/water_sine.frag @@ -143,7 +143,7 @@ void main(void) float cover = 0.0; //bool Status = true; - float windEffect = sqrt(pow(abs(WindE),2)+pow(abs(WindN),2)) * 0.6; //wind speed in kt + float windEffect = sqrt( WindE*WindE + WindN*WindN ) * 0.6; //wind speed in kt float windScale = 15.0/(3.0 + windEffect); //wave scale float windEffect_low = 0.3 + 0.7 * smoothstep(0.0, 5.0, windEffect); //low windspeed wave filter float waveRoughness = 0.01 + smoothstep(0.0, 40.0, windEffect); //wave roughness filter diff --git a/Textures/Runway/rwy-normalmap.dds b/Textures/Runway/rwy-normalmap.dds new file mode 100644 index 000000000..06a3224be Binary files /dev/null and b/Textures/Runway/rwy-normalmap.dds differ diff --git a/Textures/Runway/rwy-normalmap.png b/Textures/Runway/rwy-normalmap.png new file mode 100644 index 000000000..67384ed4f Binary files /dev/null and b/Textures/Runway/rwy-normalmap.png differ diff --git a/Textures/Runway/rwy-reflect.png b/Textures/Runway/rwy-reflect.png new file mode 100644 index 000000000..054a9ff27 Binary files /dev/null and b/Textures/Runway/rwy-reflect.png differ