Semantic node on 'palcoscenico'

This commit is contained in:
2026-05-20 14:16:01 +02:00
parent f5f105e786
commit b90d1614e9

View File

@@ -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
@@ -157,6 +159,7 @@ function createSemanticNode(model, id) {
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();