From b3ceeb5e69f87ef5528109cb03adf0bac20d5874 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 7 Feb 2016 17:00:53 +0900 Subject: [PATCH] Updated builds. --- build/three.js | 2 +- build/three.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/three.js b/build/three.js index 2cd74526902a80..52fa0073a9384a 100644 --- a/build/three.js +++ b/build/three.js @@ -20061,7 +20061,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(); diff --git a/build/three.min.js b/build/three.min.js index 518e336de3cffa..8055d2e0fd34b0 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -426,7 +426,7 @@ a}}; THREE.Material=function(){Object.defineProperty(this,"id",{value:THREE.MaterialIdCount++});this.uuid=THREE.Math.generateUUID();this.name="";this.type="Material";this.side=THREE.FrontSide;this.opacity=1;this.transparent=!1;this.blending=THREE.NormalBlending;this.blendSrc=THREE.SrcAlphaFactor;this.blendDst=THREE.OneMinusSrcAlphaFactor;this.blendEquation=THREE.AddEquation;this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null;this.depthFunc=THREE.LessEqualDepth;this.colorWrite=this.depthWrite=this.depthTest= !0;this.precision=null;this.polygonOffset=!1;this.overdraw=this.alphaTest=this.polygonOffsetUnits=this.polygonOffsetFactor=0;this._needsUpdate=this.visible=!0}; THREE.Material.prototype={constructor:THREE.Material,get needsUpdate(){return this._needsUpdate},set needsUpdate(a){!0===a&&this.update();this._needsUpdate=a},setValues:function(a){if(void 0!==a)for(var b in a){var c=a[b];if(void 0===c)console.warn("THREE.Material: '"+b+"' parameter is undefined.");else{var d=this[b];void 0===d?console.warn("THREE."+this.type+": '"+b+"' is not a property of this material."):d instanceof THREE.Color?d.set(c):d instanceof THREE.Vector3&&c instanceof THREE.Vector3?d.copy(c): -this[b]="overdraw"===b?Number(c):c}}},toJSON:function(a){function b(a){var b=[],c;for(c in a){var d=a[c];delete d.metadata;b.push(d)}return b}var c=void 0===a;c&&(a={textures:{},images:{}});var d={metadata:{version:4.4,type:"Material",generator:"Material.toJSON"}};d.uuid=this.uuid;d.type=this.type;""!==this.name&&(d.name=this.name);this.color instanceof THREE.Color&&(d.color=this.color.getHex());.5!==this.roughness&&(d.roughness=this.roughness);0