From b0371c9764ea5d98c01c72048f53c27cd2a5a5b4 Mon Sep 17 00:00:00 2001
From: Robert Long <robert@robertlong.me>
Date: Thu, 8 Mar 2018 18:26:38 -0800
Subject: [PATCH] GLTFLoader comment out sRGB encoding

---
 src/vendor/GLTFLoader.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vendor/GLTFLoader.js b/src/vendor/GLTFLoader.js
index feac2a0af..0992a18db 100644
--- a/src/vendor/GLTFLoader.js
+++ b/src/vendor/GLTFLoader.js
@@ -2004,8 +2004,8 @@ THREE.GLTFLoader = ( function () {
 			}
 
 			// emissiveTexture and baseColorTexture use sRGB encoding.
-			if ( material.map ) material.map.encoding = THREE.sRGBEncoding;
-			if ( material.emissiveMap ) material.emissiveMap.encoding = THREE.sRGBEncoding;
+			// if ( material.map ) material.map.encoding = THREE.sRGBEncoding;
+			// if ( material.emissiveMap ) material.emissiveMap.encoding = THREE.sRGBEncoding;
 
 			if ( materialDef.extras ) material.userData = materialDef.extras;
 
-- 
GitLab