repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 1bb1e0b7714650673975649716d28eda70dd9521:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 1bb1e0b7714650673975649716d28eda70dd9521
Author: James Baicoianu 
Date:   Wed Sep 18 09:10:27 2019 -0700

    Tweaked tonemapping defaults

diff --git a/scripts/room.js b/scripts/room.js
index 9d6f98691abb245d61f53f71920131d002ce80e8..
index ..b531c94155ea049805424cfb13dc909b506833c8 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -46,7 +46,7 @@ elation.require([
         'toon': { type: 'boolean', default: false },
         'bloom': { type: 'float', default: 0.4, set: this.updateBloom },
         'tonemapping_type': { type: 'string', default: 'linear', set: this.updateToneMapping },
-        'tonemapping_exposure': { type: 'float', default: 1.0, set: this.updateToneMapping },
+        'tonemapping_exposure': { type: 'float', default: 0.8, set: this.updateToneMapping },
         'tonemapping_whitepoint': { type: 'float', default: 1.0, set: this.updateToneMapping },
         'defaultlights': { type: 'bool', default: true, set: this.updateLights },
         'shadows': { type: 'bool', default: false, set: this.updateShadows },
@@ -740,8 +740,8 @@ elation.require([
         this.fog_col = room.fog_col || room.fog_color;
         this.properties.bloom = room.bloom || 0.4;
         this.properties.tonemapping_type = room.tonemapping_type || 'linear';
-        this.properties.tonemapping_exposure = room.tonemapping_exposure || 1.0;
-        this.properties.tonemapping_whitepoint = room.tonemapping_whitepoint || 1.0;
+        this.properties.tonemapping_exposure = room.tonemapping_exposure || this.tonemapping_exposure;
+        this.properties.tonemapping_whitepoint = room.tonemapping_whitepoint || this.tonemapping_whitepoint;
         this.properties.shadows = elation.utils.any(room.shadows, false);
         this.properties.party_mode = elation.utils.any(room.party_mode, true);
         this.properties.locked = room.locked;

-----END OF PAGE-----