repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 19f592a7daf9d5a391820ec7024222073fad5842:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 19f592a7daf9d5a391820ec7024222073fad5842
Author: James Baicoianu 
Date:   Mon Nov 30 11:48:38 2020 -0800

    Use sRGB encoding for skybox texture

diff --git a/scripts/room.js b/scripts/room.js
index ff03bcbe1ef3169853963dfa4a533525ec3a89c1..
index ..91db079cc6581d1bcf95cdb37ebbc57cdf06a789 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -375,6 +375,7 @@ elation.require([
           // flip skybox 180 degrees
           images = [images[1],images[0],images[2],images[3],images[5],images[4]];
           var texture = new THREE.CubeTexture( images );
+          texture.encoding = THREE.sRGBEncoding;
           texture.needsUpdate = true;
           this.skyboxtexture = texture;
           if (this.janus.currentroom === this) {

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