From 747655df8234b598b733a4614e937a452d357f2b Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 14 Jun 2020 14:43:44 -0400 Subject: [PATCH] Smooth mesh lighting --- app/static/app/js/vendor/MTLLoader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/app/js/vendor/MTLLoader.js b/app/static/app/js/vendor/MTLLoader.js index f5de8335..4e8dafd6 100644 --- a/app/static/app/js/vendor/MTLLoader.js +++ b/app/static/app/js/vendor/MTLLoader.js @@ -357,7 +357,7 @@ THREE.MTLLoader.MaterialCreator.prototype = { case 'ks': // Specular color (color when light is reflected from shiny surface) using RGB values - params.specular = new THREE.Color().fromArray( value ); + // params.specular = new THREE.Color().fromArray( value ); break; @@ -421,7 +421,7 @@ THREE.MTLLoader.MaterialCreator.prototype = { // The specular exponent (defines the focus of the specular highlight) // A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000. - params.shininess = parseFloat( value ); + // params.shininess = parseFloat( value ); break; @@ -458,7 +458,7 @@ THREE.MTLLoader.MaterialCreator.prototype = { } - this.materials[ materialName ] = new THREE.MeshPhongMaterial( params ); + this.materials[ materialName ] = new THREE.MeshBasicMaterial( params ); return this.materials[ materialName ]; },