Skip to content

Commit

Permalink
Change 3mf loader's default color to white. (#22808)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv authored Nov 10, 2021
1 parent 6f93950 commit 15112d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/loaders/3MFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ class ThreeMFLoader extends Loader {
geometry.setIndex( new BufferAttribute( meshData[ 'triangles' ], 1 ) );
geometry.setAttribute( 'position', new BufferAttribute( meshData[ 'vertices' ], 3 ) );

const material = new MeshPhongMaterial( { color: 0xaaaaff, flatShading: true } );
const material = new MeshPhongMaterial( { color: 0xffffff, flatShading: true } );

const mesh = new Mesh( geometry, material );

Expand Down
Binary file modified examples/screenshots/webgl_loader_3mf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15112d0

Please sign in to comment.