Cosmetic changes...

This commit is contained in:
Nicolò P 2025-10-06 16:19:31 +02:00
parent 8b01e7943a
commit 7deaaa5752

View File

@ -50,7 +50,7 @@ Scene.init = function() {
ATON.toggleShadows(true);
ATON.setExposure(1.3);
// Open settings side panel when clicking on btn
// Open settings side panel when clicking on settings btn
Scene.toggleSettingsPanel('settings');
}
/**
@ -66,7 +66,6 @@ Scene.toggleScene = function(id) {
});
}
/**
* @todo This shoudn't be here...
* @param {Object} marker - The marker object from config
*/
Scene.openScene = function(marker) {
@ -76,16 +75,14 @@ Scene.openScene = function(marker) {
if (canvas === null) {
Scene.init();
}
scene.classList.toggle('d-none');
console.log(marker.model);
// Load 3D model
let mainNode = ATON.createSceneNode(marker.label).load(marker.model);
// Panorama should be configurable and / or user-defined
ATON.setMainPanorama(marker.pano);
mainNode.setMaterial(new THREE.MeshPhongMaterial(material));
mainNode.setRotation(0, 1.5, 0)
//showEdges(mainNode.children[0]);
mainNode.attachToRoot();
}