scaenae/js/state.js
Nicolò P 7b556a676c Lame helper plane for clipping
TODO: the visible plane should have its center at the axes origin
2025-10-15 20:49:20 +02:00

36 lines
698 B
JavaScript

export const AppState = {
// The root scene object
root: null,
scenes : [
{
id : "salvador",
active : false
}
],
ambientOcclusion : true,
shadows : true,
map : null,
clipping : {
enabled: false,
helper : null,
}
}
/**
* @todo Buggyyyyy!!!!
* @param {String} id
* @returns {Boolean}
*/
export function getSceneStatus(id) {
return AppState.scenes.find(s => s.id === id).active;
}
/**
* @todo Buggyyyyy!!!!
* @param {String} id
* @param {Boolean} status
* @returns {Boolean}
*/
export function setSceneStatus(id, status) {
return AppState.scenes.find(s => s.id === id).active = status;
}