Explorar o código

Material: Fixed metalness default value handling.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
e8e1a71c3e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/materials/Material.js

+ 1 - 1
src/materials/Material.js

@@ -142,7 +142,7 @@ THREE.Material.prototype = {
 		if ( this.color instanceof THREE.Color ) data.color = this.color.getHex();
 
 		if ( this.roughness !== 0.5 ) data.roughness = this.roughness;
-		if ( this.metalness > 0 ) data.metalness = this.metalness;
+		if ( this.metalness !== 0.5 ) data.metalness = this.metalness;
 
 		if ( this.emissive instanceof THREE.Color ) data.emissive = this.emissive.getHex();
 		if ( this.specular instanceof THREE.Color ) data.specular = this.specular.getHex();