Skip to content

Commit 48e6e2e

Browse files
committed
GLTFExporter: Clearer code.
1 parent 39b1f02 commit 48e6e2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/jsm/exporters/GLTFExporter.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,8 @@ class GLTFWriter {
15241524

15251525
} else {
15261526

1527-
materialDef.pbrMetallicRoughness.metallicFactor = 0; // default roughness is 1
1527+
materialDef.pbrMetallicRoughness.metallicFactor = 0;
1528+
materialDef.pbrMetallicRoughness.roughnessFactor = 1;
15281529

15291530
}
15301531

0 commit comments

Comments
 (0)