From d474e2e05bf6a04e61552dbea662e2dc717df66a Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Mon, 28 May 2018 21:40:21 -0700 Subject: [PATCH] GLTFLoader: specularGlossinessTexture is sRGB. --- examples/js/loaders/GLTFLoader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/js/loaders/GLTFLoader.js b/examples/js/loaders/GLTFLoader.js index c3ef74a068..0d5516c421 100644 --- a/examples/js/loaders/GLTFLoader.js +++ b/examples/js/loaders/GLTFLoader.js @@ -2240,9 +2240,10 @@ THREE.GLTFLoader = ( function () { } - // emissiveTexture and baseColorTexture use sRGB encoding. + // baseColorTexture, emissiveTexture, and specularGlossinessTexture use sRGB encoding. if ( material.map ) material.map.encoding = THREE.sRGBEncoding; if ( material.emissiveMap ) material.emissiveMap.encoding = THREE.sRGBEncoding; + if ( material.specularMap ) material.specularMap.encoding = THREE.sRGBEncoding; if ( materialDef.extras ) material.userData = materialDef.extras; -- GitLab