From 58c5a389ceaad4d6c7dbd7f39d6e172d7be07d39 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Fri, 18 May 2012 09:00:48 +0200 Subject: [PATCH] Allow to adjust ambient occlusion strength --- Effects/ambient.eff | 8 +++++- Shaders/ambient.frag | 6 ++-- gui/dialogs/rendering.xml | 60 ++++++++++++++++++++++++++++++++++----- gui/menubar.xml | 9 ------ preferences.xml | 1 + 5 files changed, 65 insertions(+), 19 deletions(-) diff --git a/Effects/ambient.eff b/Effects/ambient.eff index a92e57150..d5bd2ad4a 100644 --- a/Effects/ambient.eff +++ b/Effects/ambient.eff @@ -3,6 +3,7 @@ Effects/ambient /sim/rendering/rembrandt/ambient-occlusion + /sim/rendering/rembrandt/ambient-occlusion-strength @@ -71,7 +72,12 @@ ambientOcclusion bool - ambient-occlusion + ambient-occlusion + + + ambientOcclusionStrength + float + ambient-occlusion-strength