Update viewer.js
Browse files
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);
|