Skip to content

Commit

Permalink
UNRI2-141: Add default config fields for lights and background color
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksha Singh authored and Akanksha Singh committed Aug 17, 2023
1 parent 5c6e23f commit 15fd185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/ThreeDViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export class ThreeDViewer {
this.renderer.domElement.style.objectFit = 'contain';
}


loadGltf(url) {
this.log && console.log('Beginning to render ' + url + ' with gltf loader');
this.loader = new GLTFLoader(this.manager);
Expand Down Expand Up @@ -316,7 +317,7 @@ export class ThreeDViewer {
});

if (mtl_file !== null) {
let materials = new MTLLoader().parse(strFromU8(mtl_file));
let materials = new MTLLoader(this.manager).parse(strFromU8(mtl_file));

if (Object.entries(obj_textures).length !== 0) {

Expand Down
2 changes: 1 addition & 1 deletion js/dist/dgi_3d_viewer.js

Large diffs are not rendered by default.

0 comments on commit 15fd185

Please sign in to comment.