MikaFil commited on
Commit
4ce8a1c
·
verified ·
1 Parent(s): 2422f49

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +1 -0
viewer.js CHANGED
@@ -151,6 +151,7 @@ export async function initializeViewer(config, instanceId) {
151
  app.root.addChild(modelEntity);
152
 
153
  // --- Add the GLB entity ---
 
154
  if (assets.glb && assets.glb.resource && assets.glb.resource.instantiateRenderEntity) {
155
  const glbEntity = assets.glb.resource.instantiateRenderEntity();
156
  app.root.addChild(glbEntity);
 
151
  app.root.addChild(modelEntity);
152
 
153
  // --- Add the GLB entity ---
154
+ let matTransparent = null;
155
  if (assets.glb && assets.glb.resource && assets.glb.resource.instantiateRenderEntity) {
156
  const glbEntity = assets.glb.resource.instantiateRenderEntity();
157
  app.root.addChild(glbEntity);