Skip to content

Commit

Permalink
GLTFExporter: Better defaults for metallic and roughness factors. (#2…
Browse files Browse the repository at this point in the history
…9692)

* GLTFExporter: Better defaults for metallic and roughness factors.

* GLTFExporter: Stick to glTF spec.

* GLTFExporter: Clean up.
  • Loading branch information
Mugen87 authored Oct 19, 2024
1 parent 0ba7073 commit 2976aa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/jsm/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1524,8 +1524,7 @@ class GLTFWriter {

} else {

materialDef.pbrMetallicRoughness.metallicFactor = 0.5;
materialDef.pbrMetallicRoughness.roughnessFactor = 0.5;
materialDef.pbrMetallicRoughness.metallicFactor = 0; // default roughness is 1

}

Expand Down

0 comments on commit 2976aa1

Please sign in to comment.