Skip to content

Commit

Permalink
Material: Fixed metalness default value handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 7, 2016
1 parent e3b2abe commit e8e1a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/materials/Material.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e8e1a71

Please sign in to comment.