Smooth mesh lighting

pull/882/head
Piero Toffanin 2020-06-14 14:43:44 -04:00
rodzic 7077671d52
commit 747655df82
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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 ];
},