Skip to content

Commit e8e1a71

Browse files
committed
Material: Fixed metalness default value handling.
1 parent e3b2abe commit e8e1a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/materials/Material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ THREE.Material.prototype = {
142142
if ( this.color instanceof THREE.Color ) data.color = this.color.getHex();
143143

144144
if ( this.roughness !== 0.5 ) data.roughness = this.roughness;
145-
if ( this.metalness > 0 ) data.metalness = this.metalness;
145+
if ( this.metalness !== 0.5 ) data.metalness = this.metalness;
146146

147147
if ( this.emissive instanceof THREE.Color ) data.emissive = this.emissive.getHex();
148148
if ( this.specular instanceof THREE.Color ) data.specular = this.specular.getHex();

0 commit comments

Comments
 (0)