diff --git a/Effects/display.eff b/Effects/display.eff index b8e0d5956..1b82c6f4d 100644 --- a/Effects/display.eff +++ b/Effects/display.eff @@ -5,6 +5,7 @@ /sim/rendering/rembrandt/exposure /sim/rendering/rembrandt/show-buffers /sim/rendering/rembrandt/bloom + /sim/rendering/rembrandt/bloom-strength /sim/rendering/rembrandt/bloom-buffers /sim/rendering/rembrandt/debug-buffer[0]/enabled @@ -125,10 +126,15 @@ bool bloom + + bloomStrength + float + bloom-strength + bloomBuffers bool - bloom-buffers + bloom-buffers diff --git a/Shaders/display.frag b/Shaders/display.frag index ae68b2262..66205cd1b 100644 --- a/Shaders/display.frag +++ b/Shaders/display.frag @@ -10,6 +10,7 @@ uniform float exposure; uniform bool showBuffers; uniform bool bloomEnabled; +uniform float bloomStrength; uniform bool bloomBuffers; uniform bool bufferNW_enabled; @@ -40,13 +41,13 @@ void main() { } else { color = texture2D( lighting_tex, coords ); if (bloomEnabled && bloomBuffers) - color = color + texture2D( bloom_tex, coords ); + color = color + bloomStrength * texture2D( bloom_tex, coords ); //color = vec4( HDR( color.rgb ), 1.0 ); } } else { color = texture2D( lighting_tex, coords ); if (bloomEnabled && bloomBuffers) - color = color + texture2D( bloom_tex, coords ); + color = color + bloomStrength * texture2D( bloom_tex, coords ); //color = vec4( HDR( color.rgb ), 1.0 ); } gl_FragColor = color; diff --git a/gui/dialogs/rembrandt.xml b/gui/dialogs/rembrandt.xml index dc5ba85ff..29120d8b4 100644 --- a/gui/dialogs/rembrandt.xml +++ b/gui/dialogs/rembrandt.xml @@ -34,22 +34,65 @@ - + + hbox left - - bloom - /sim/rendering/rembrandt/bloom - - dialog-apply - bloom - - - - /sim/rendering/rembrandt/enabled + + + left + + bloom + /sim/rendering/rembrandt/bloom + + dialog-apply + bloom + + /sim/rendering/rembrandt/bloom-buffers - - - + + + + 66 + + + + + + /sim/rendering/rembrandt/bloom + /sim/rendering/rembrandt/bloom-buffers + + + + + bloom-strength + 0.0 + 1.0 + 0.01 + /sim/rendering/rembrandt/bloom-strength + + dialog-apply + bloom-strength + + + + /sim/rendering/rembrandt/bloom + /sim/rendering/rembrandt/bloom-buffers + + + + + + %.2f + true + /sim/rendering/rembrandt/bloom-strength + + + /sim/rendering/rembrandt/bloom + /sim/rendering/rembrandt/bloom-buffers + + + + hbox @@ -63,6 +106,9 @@ dialog-apply occlusion + + /sim/rendering/rembrandt/ambient-occlusion-buffers + -4 @@ -70,14 +116,14 @@ - /sim/rendering/rembrandt/ambient-occlusion + + /sim/rendering/rembrandt/ambient-occlusion + /sim/rendering/rembrandt/ambient-occlusion-buffers + ambient-occlusion-strength - - /sim/rendering/rembrandt/ambient-occlusion - 0.0 1.0 0.01 @@ -86,15 +132,24 @@ dialog-apply ambient-occlusion-strength + + + /sim/rendering/rembrandt/ambient-occlusion + /sim/rendering/rembrandt/ambient-occlusion-buffers + + - - /sim/rendering/rembrandt/ambient-occlusion - %.2f true /sim/rendering/rembrandt/ambient-occlusion-strength + + + /sim/rendering/rembrandt/ambient-occlusion + /sim/rendering/rembrandt/ambient-occlusion-buffers + + diff --git a/preferences.xml b/preferences.xml index b96fb75b9..f8cc825cf 100644 --- a/preferences.xml +++ b/preferences.xml @@ -69,6 +69,7 @@ Started September 2000 by David Megginson, david@megginson.com 1.0 true true + 1.0 true 1.0 false