Cosmetic changes...
This commit is contained in:
parent
8b01e7943a
commit
7deaaa5752
@ -50,7 +50,7 @@ Scene.init = function() {
|
|||||||
|
|
||||||
ATON.toggleShadows(true);
|
ATON.toggleShadows(true);
|
||||||
ATON.setExposure(1.3);
|
ATON.setExposure(1.3);
|
||||||
// Open settings side panel when clicking on btn
|
// Open settings side panel when clicking on settings btn
|
||||||
Scene.toggleSettingsPanel('settings');
|
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
|
* @param {Object} marker - The marker object from config
|
||||||
*/
|
*/
|
||||||
Scene.openScene = function(marker) {
|
Scene.openScene = function(marker) {
|
||||||
@ -76,16 +75,14 @@ Scene.openScene = function(marker) {
|
|||||||
if (canvas === null) {
|
if (canvas === null) {
|
||||||
Scene.init();
|
Scene.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
scene.classList.toggle('d-none');
|
scene.classList.toggle('d-none');
|
||||||
console.log(marker.model);
|
|
||||||
// Load 3D model
|
// Load 3D model
|
||||||
let mainNode = ATON.createSceneNode(marker.label).load(marker.model);
|
let mainNode = ATON.createSceneNode(marker.label).load(marker.model);
|
||||||
// Panorama should be configurable and / or user-defined
|
|
||||||
ATON.setMainPanorama(marker.pano);
|
ATON.setMainPanorama(marker.pano);
|
||||||
mainNode.setMaterial(new THREE.MeshPhongMaterial(material));
|
mainNode.setMaterial(new THREE.MeshPhongMaterial(material));
|
||||||
mainNode.setRotation(0, 1.5, 0)
|
mainNode.setRotation(0, 1.5, 0)
|
||||||
|
|
||||||
//showEdges(mainNode.children[0]);
|
|
||||||
mainNode.attachToRoot();
|
mainNode.attachToRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user