summarylogtreecommitdiffstats
path: root/70-disable-hdr-by-default.patch
blob: 8d0ea8958118224ef87af3c9f76707bdaa84246d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Change default to disable HDR rendering
 Sometimes with HDR and SSAO enabled, there will be black sticking artifacts.
 This patch sets the default for HDR to "off"
 See the upstream bug for detail.
Author: Tobias Frost <tobi@debian.org>
Bug: https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/308
Last-Update: 2016-10-15
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/neo/renderer/RenderSystem_init.cpp
+++ b/neo/renderer/RenderSystem_init.cpp
@@ -252,7 +252,7 @@
 idCVar r_shadowMapSunDepthBiasScale( "r_shadowMapSunDepthBiasScale", "0.999991", CVAR_RENDERER | CVAR_FLOAT, "shadowmap bias to fight shadow acne for cascaded shadow mapping with parallel lights" );
 
 // RB: HDR parameters
-idCVar r_useHDR( "r_useHDR", "1", CVAR_RENDERER | CVAR_ARCHIVE | CVAR_BOOL, "use high dynamic range rendering" );
+idCVar r_useHDR( "r_useHDR", "0", CVAR_RENDERER | CVAR_ARCHIVE | CVAR_BOOL, "use high dynamic range rendering" );
 idCVar r_hdrAutoExposure( "r_hdrAutoExposure", "1", CVAR_RENDERER | CVAR_BOOL, "EXPENSIVE: enables adapative HDR tone mapping otherwise the exposure is derived by r_exposure" );
 idCVar r_hdrMinLuminance( "r_hdrMinLuminance", "0.005", CVAR_RENDERER | CVAR_FLOAT, "" );
 idCVar r_hdrMaxLuminance( "r_hdrMaxLuminance", "300", CVAR_RENDERER | CVAR_FLOAT, "" );