Spaces:
Running
Running
Update viewer.js
#1
by
MikaFil - opened
viewer.js
CHANGED
|
@@ -303,7 +303,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 303 |
app.root.addChild(cameraEntity);
|
| 304 |
|
| 305 |
// Remove Skybox layer from camera
|
| 306 |
-
const skyboxLayer = app.scene.layers.getLayerByName("Skybox");
|
| 307 |
if (skyboxLayer) {
|
| 308 |
const camLayers = cameraEntity.camera.layers.slice();
|
| 309 |
const idx = camLayers.indexOf(skyboxLayer.id);
|
|
@@ -330,7 +330,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 330 |
mat.update();
|
| 331 |
bgPlane.model.material = mat;
|
| 332 |
cameraEntity.addChild(bgPlane);
|
| 333 |
-
|
| 334 |
// ----- Lighting -----
|
| 335 |
const light = new pc.Entity("mainLight");
|
| 336 |
light.addComponent('light', {
|
|
|
|
| 303 |
app.root.addChild(cameraEntity);
|
| 304 |
|
| 305 |
// Remove Skybox layer from camera
|
| 306 |
+
/*const skyboxLayer = app.scene.layers.getLayerByName("Skybox");
|
| 307 |
if (skyboxLayer) {
|
| 308 |
const camLayers = cameraEntity.camera.layers.slice();
|
| 309 |
const idx = camLayers.indexOf(skyboxLayer.id);
|
|
|
|
| 330 |
mat.update();
|
| 331 |
bgPlane.model.material = mat;
|
| 332 |
cameraEntity.addChild(bgPlane);
|
| 333 |
+
*/
|
| 334 |
// ----- Lighting -----
|
| 335 |
const light = new pc.Entity("mainLight");
|
| 336 |
light.addComponent('light', {
|