From 5bd2faab04a09f8e8d637eaeb5c8057849bc94b5 Mon Sep 17 00:00:00 2001 From: Thorsten Renk Date: Mon, 14 Mar 2016 11:43:55 +0200 Subject: [PATCH] Preparation for filtering (gamma, brightness, night vision) for ALS --- Effects/cloud.eff | 25 +++++++++++++++ Effects/skydome.eff | 25 +++++++++++++++ Effects/terrain-default.eff | 25 +++++++++++++++ Effects/water-inland.eff | 36 ++++++++++++++++++--- Effects/water.eff | 26 ++++++++++++++++ Shaders/3dcloud-ALS.frag | 9 ++++-- Shaders/filters-ALS.frag | 57 ++++++++++++++++++++++++++++++++++ Shaders/skydome-ALS.frag | 3 +- Shaders/terrain-ALS-ultra.frag | 3 +- Shaders/water-ALS-high.frag | 13 ++++++-- preferences.xml | 6 ++++ 11 files changed, 216 insertions(+), 12 deletions(-) create mode 100644 Shaders/filters-ALS.frag diff --git a/Effects/cloud.eff b/Effects/cloud.eff index 094a53682..b133b799f 100644 --- a/Effects/cloud.eff +++ b/Effects/cloud.eff @@ -17,6 +17,10 @@ /environment/lightning/lightning-pos-x /environment/lightning/lightning-pos-y /environment/lightning/lightning-range + /sim/rendering/als-filters/use-filtering + /sim/rendering/als-filters/gamma + /sim/rendering/als-filters/brightness + /sim/rendering/als-filters/use-night-vision @@ -63,6 +67,7 @@ Shaders/3dcloud-ALS.vert Shaders/3dcloud-ALS.frag + Shaders/filters-ALS.frag usrAttr1 10 @@ -142,6 +147,26 @@ float lightning-range + + gamma + float + gamma + + + brightness + float + brightness + + + use_filtering + bool + use_filtering + + + use_night_vision + bool + use_night_vision + diff --git a/Effects/skydome.eff b/Effects/skydome.eff index 8e32879c3..1d612a6e7 100644 --- a/Effects/skydome.eff +++ b/Effects/skydome.eff @@ -33,6 +33,10 @@ /sim/rendering/als-secondary-lights/landing-light1-offset-deg /sim/rendering/als-secondary-lights/landing-light2-offset-deg /sim/rendering/als-secondary-lights/landing-light3-offset-deg + /sim/rendering/als-filters/use-filtering + /sim/rendering/als-filters/gamma + /sim/rendering/als-filters/brightness + /sim/rendering/als-filters/use-night-vision /environment/air-pollution-norm @@ -63,6 +67,7 @@ Shaders/skydome-ALS.frag Shaders/noise.frag Shaders/secondary_lights.frag + Shaders/filters-ALS.frag mK @@ -169,6 +174,26 @@ float horizon_roughness + + gamma + float + gamma + + + brightness + float + brightness + + + use_filtering + bool + use_filtering + + + use_night_vision + bool + use_night_vision + view_pitch_offset float diff --git a/Effects/terrain-default.eff b/Effects/terrain-default.eff index 6caec7b79..c42c22ba5 100644 --- a/Effects/terrain-default.eff +++ b/Effects/terrain-default.eff @@ -130,6 +130,10 @@ /sim/rendering/als-secondary-lights/landing-light3-offset-deg /sim/rendering/shaders/landmass /sim/rendering/shaders/transition + /sim/rendering/als-filters/use-filtering + /sim/rendering/als-filters/gamma + /sim/rendering/als-filters/brightness + /sim/rendering/als-filters/use-night-vision /local-weather/cloud-shadows/cloudpos-x[0] /local-weather/cloud-shadows/cloudpos-y[0] /local-weather/cloud-shadows/cloudpos-x[1] @@ -308,6 +312,7 @@ Shaders/cloud-shadowfunc.frag Shaders/hazes.frag Shaders/secondary_lights.frag + Shaders/filters-ALS.frag grain_strength @@ -479,6 +484,26 @@ float landing_light3_offset + + gamma + float + gamma + + + brightness + float + brightness + + + use_night_vision + bool + use_night_vision + + + use_filtering + bool + use_filtering + cloudpos1_x float diff --git a/Effects/water-inland.eff b/Effects/water-inland.eff index 5cac1df17..379577156 100644 --- a/Effects/water-inland.eff +++ b/Effects/water-inland.eff @@ -146,6 +146,11 @@ /sim/rendering/shaders/skydome + + /sim/rendering/als-filters/use-filtering + /sim/rendering/als-filters/gamma + /sim/rendering/als-filters/brightness + /sim/rendering/als-filters/use-night-vision /local-weather/cloud-shadows/cloudpos-x[0] /local-weather/cloud-shadows/cloudpos-y[0] @@ -394,6 +399,7 @@ Shaders/cloud-shadowfunc.frag Shaders/hazes.frag Shaders/secondary_lights.frag + Shaders/filters-ALS.frag + /sim/rendering/als-filters/use-filtering + /sim/rendering/als-filters/gamma + /sim/rendering/als-filters/brightness + /sim/rendering/als-filters/use-night-vision /local-weather/cloud-shadows/cloudpos-x[0] /local-weather/cloud-shadows/cloudpos-y[0] @@ -377,6 +382,7 @@ Shaders/cloud-shadowfunc.frag Shaders/hazes.frag Shaders/secondary_lights.frag + Shaders/filters-ALS.frag