Cosmetic changes...
This commit is contained in:
parent
8b01e7943a
commit
7deaaa5752
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user