From 6c971211b8bcb90ac3a858249c71dd327fb549a9 Mon Sep 17 00:00:00 2001 From: Gijs de Rooy Date: Mon, 12 Dec 2011 17:04:36 +0100 Subject: [PATCH] Quality slider overwrites custom shader settings. All effects now listen to the new sim/rendering/shaders/ properties. --- Effects/bowwave.eff | 6 ++--- Effects/bumpspec.eff | 2 +- Effects/flutter.eff | 8 ++----- Effects/landmass.eff | 8 +++---- Effects/lightmap.eff | 4 ++-- Effects/model-combined.eff | 3 +-- Effects/model-default.eff | 4 ++-- Effects/rain-layer.eff | 2 +- Effects/reflect-bump-spec.eff | 4 ++-- Effects/reflect.eff | 2 +- Effects/runway.eff | 4 ++-- Effects/skydome.eff | 1 - Effects/terrain-default.eff | 4 ++-- Effects/test.eff | 2 +- Effects/transition.eff | 3 +-- Effects/tree.eff | 3 +-- Effects/urban.eff | 6 ++--- Effects/water-inland.eff | 10 ++++----- Effects/water.eff | 2 +- gui/dialogs/rendering.xml | 42 ++++++++++++++++++++++++++++++----- gui/dialogs/shaders.xml | 38 ++++++++++++++++++++++++++----- preferences.xml | 5 +++-- 22 files changed, 104 insertions(+), 59 deletions(-) diff --git a/Effects/bowwave.eff b/Effects/bowwave.eff index f97084b11..ecd7db865 100644 --- a/Effects/bowwave.eff +++ b/Effects/bowwave.eff @@ -109,7 +109,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -117,10 +117,9 @@ /sim/rendering/shaders/water - 2.0 - /sim/rendering/shaders/quality-level + /sim/rendering/shaders/water @@ -492,7 +491,6 @@ /sim/rendering/shaders/water - /sim/rendering/shaders/quality-level 2.0 diff --git a/Effects/bumpspec.eff b/Effects/bumpspec.eff index a74aeb326..032f5e816 100644 --- a/Effects/bumpspec.eff +++ b/Effects/bumpspec.eff @@ -37,7 +37,7 @@ in Aircraft/A320/Models/Effects/a320_bumpspec.eff ( or whatever, private to the - /sim/rendering/shader-effects + /sim/rendering/shaders/model 2.0 diff --git a/Effects/flutter.eff b/Effects/flutter.eff index 8a4c6574c..138d8ba4e 100644 --- a/Effects/flutter.eff +++ b/Effects/flutter.eff @@ -41,7 +41,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -49,11 +49,7 @@ - - - 3.0 - /sim/rendering/shaders/quality-level - + /sim/rendering/shaders/generic 2.0 diff --git a/Effects/landmass.eff b/Effects/landmass.eff index 0e62aff13..4170f36fc 100644 --- a/Effects/landmass.eff +++ b/Effects/landmass.eff @@ -16,7 +16,7 @@ 0.01 15.0 - /sim/rendering/shaders/quality-level + /sim/rendering/shaders/landmass @@ -37,7 +37,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -50,8 +50,8 @@ /sim/rendering/shaders/landmass - 4.5 - /sim/rendering/shaders/quality-level + 4.0 + /sim/rendering/shaders/landmass diff --git a/Effects/lightmap.eff b/Effects/lightmap.eff index 43e510c91..1e2535394 100644 --- a/Effects/lightmap.eff +++ b/Effects/lightmap.eff @@ -9,13 +9,13 @@ 1 - /sim/rendering/shader-effects + /sim/rendering/shader/generic 1 - /sim/rendering/shader-effects + /sim/rendering/shaders/generic 2.0 diff --git a/Effects/model-combined.eff b/Effects/model-combined.eff index a18654d0b..b32c33525 100644 --- a/Effects/model-combined.eff +++ b/Effects/model-combined.eff @@ -133,7 +133,7 @@ please see Docs/README.model-combined.eff for documentation /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -147,7 +147,6 @@ please see Docs/README.model-combined.eff for documentation /sim/rendering/shaders/model - /sim/rendering/shaders/quality-level 2.0 diff --git a/Effects/model-default.eff b/Effects/model-default.eff index cfde14342..33db40101 100644 --- a/Effects/model-default.eff +++ b/Effects/model-default.eff @@ -28,14 +28,14 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome - /sim/rendering/shader-effects + /sim/rendering/shaders/generic 2.0 diff --git a/Effects/rain-layer.eff b/Effects/rain-layer.eff index c524e4ebc..f0296c360 100644 --- a/Effects/rain-layer.eff +++ b/Effects/rain-layer.eff @@ -8,7 +8,7 @@ - /sim/rendering/shader-effects + /sim/rendering/clouds3d-enable 1.0 diff --git a/Effects/reflect-bump-spec.eff b/Effects/reflect-bump-spec.eff index e062b0f12..706a20730 100644 --- a/Effects/reflect-bump-spec.eff +++ b/Effects/reflect-bump-spec.eff @@ -123,7 +123,7 @@ EXAMPLES: You can find examples of both usages in the Hunter and Lightning model /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -135,7 +135,7 @@ EXAMPLES: You can find examples of both usages in the Hunter and Lightning model - /sim/rendering/shader-effects + /sim/rendering/shaders/model 2.0 diff --git a/Effects/reflect.eff b/Effects/reflect.eff index 7b0104774..819cc3ebe 100644 --- a/Effects/reflect.eff +++ b/Effects/reflect.eff @@ -114,7 +114,7 @@ - /sim/rendering/shader-effects + /sim/rendering/shaders/model 2.0 diff --git a/Effects/runway.eff b/Effects/runway.eff index d2ce52e57..8433eb4ab 100644 --- a/Effects/runway.eff +++ b/Effects/runway.eff @@ -78,7 +78,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -89,7 +89,7 @@ - /sim/rendering/shader-effects + /sim/rendering/shaders/generic 2.0 diff --git a/Effects/skydome.eff b/Effects/skydome.eff index fb19e2698..849af3f32 100644 --- a/Effects/skydome.eff +++ b/Effects/skydome.eff @@ -36,7 +36,6 @@ - /sim/rendering/shaders/quality-level /sim/rendering/shaders/skydome diff --git a/Effects/terrain-default.eff b/Effects/terrain-default.eff index 3a0f5e909..223c6e7b0 100644 --- a/Effects/terrain-default.eff +++ b/Effects/terrain-default.eff @@ -51,7 +51,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -94,7 +94,6 @@ parameters : /sim/rendering/shaders/transition - /sim/rendering/shaders/quality-level 2.0 diff --git a/Effects/tree.eff b/Effects/tree.eff index e06c5e908..4307175ea 100644 --- a/Effects/tree.eff +++ b/Effects/tree.eff @@ -33,14 +33,13 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome - /sim/rendering/random-vegetation 1.0 diff --git a/Effects/urban.eff b/Effects/urban.eff index 1a0123d5d..611178d41 100644 --- a/Effects/urban.eff +++ b/Effects/urban.eff @@ -29,7 +29,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome @@ -43,7 +43,6 @@ /sim/rendering/shaders/urban - /sim/rendering/shaders/quality-level 4.0 /sim/rendering/shaders/urban @@ -288,10 +287,9 @@ /sim/rendering/shaders/urban - 2.0 - /sim/rendering/shaders/quality-level + /sim/rendering/shaders/urban diff --git a/Effects/water-inland.eff b/Effects/water-inland.eff index 999c90dca..57f266baa 100644 --- a/Effects/water-inland.eff +++ b/Effects/water-inland.eff @@ -66,18 +66,17 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome - /sim/rendering/water-shader - /sim/rendering/shader-effects + /sim/rendering/shaders/water 2.0 - /sim/rendering/quality-level + /sim/rendering/shaders/water @@ -310,8 +309,7 @@ - /sim/rendering/water-shader - /sim/rendering/shader-effects + /sim/rendering/shaders/water 2.0 diff --git a/Effects/water.eff b/Effects/water.eff index 64b0628f0..d58e282e9 100644 --- a/Effects/water.eff +++ b/Effects/water.eff @@ -125,7 +125,7 @@ /environment/terminator-relative-position-m - /sim/rendering/scattering-shader + /sim/rendering/shaders/skydome diff --git a/gui/dialogs/rendering.xml b/gui/dialogs/rendering.xml index 461992151..c524c8edc 100644 --- a/gui/dialogs/rendering.xml +++ b/gui/dialogs/rendering.xml @@ -171,7 +171,7 @@ left - + random-objects /sim/rendering/random-objects @@ -341,7 +341,22 @@ true - + + + vbox + 4 + + 0 + + left + + + 0 + + left + + + hbox @@ -375,9 +390,6 @@ hbox