Semantic node on 'palcoscenico'
This commit is contained in:
@@ -45,6 +45,8 @@ function init () {
|
|||||||
AppState.exposure = config.scene.initialExposure;
|
AppState.exposure = config.scene.initialExposure;
|
||||||
|
|
||||||
ATON.Nav.setUserControl(true);
|
ATON.Nav.setUserControl(true);
|
||||||
|
// Avoid semantic occlusion
|
||||||
|
ATON._bQuerySemOcclusion = false;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param {Object} marker - The marker object from config
|
* @param {Object} marker - The marker object from config
|
||||||
@@ -156,7 +158,8 @@ function createSemanticNode(model, id) {
|
|||||||
let matSemDef = ATON.MatHub.materials.semanticShape;
|
let matSemDef = ATON.MatHub.materials.semanticShape;
|
||||||
let matSemHL = ATON.MatHub.materials.semanticShapeHL;
|
let matSemHL = ATON.MatHub.materials.semanticShapeHL;
|
||||||
|
|
||||||
const semNode = ATON.createSemanticNode(id)
|
const semNode = ATON.createSemanticNode(id)
|
||||||
|
.setCloneOnLoadHit(false)
|
||||||
.load(model)
|
.load(model)
|
||||||
.setDefaultAndHighlightMaterials(matSemDef, matSemHL)
|
.setDefaultAndHighlightMaterials(matSemDef, matSemHL)
|
||||||
.attachToRoot();
|
.attachToRoot();
|
||||||
|
|||||||
Reference in New Issue
Block a user