repo: janusweb action: commit revision: path_from: revision_from: 19f592a7daf9d5a391820ec7024222073fad5842: path_to: revision_to:
commit 19f592a7daf9d5a391820ec7024222073fad5842 Author: James BaicoianuDate: Mon Nov 30 11:48:38 2020 -0800 Use sRGB encoding for skybox texture diff --git a/scripts/room.js b/scripts/room.js
--- 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-----