update sla device with resolution. add halot sky device

This commit is contained in:
Stewart Allen 2021-07-24 18:02:09 -04:00
commit ed9ddfd83e
10 changed files with 48 additions and 14 deletions

View file

@ -1271,7 +1271,7 @@
for (let [k,v] of Object.entries(consts)) {
eva.push(`let ${k} = "${v}";`);
}
eva.push(`function range(a,b) { return (a + (layer / layers) * (b-a)).round(3) }`)
eva.push(`function range(a,b) { return (a + (layer / layers) * (b-a)).round(4) }`)
eva.push(`try {( ${tok} )} catch (e) {console.log(e);0}`);
let scr = eva.join('');
let evl = eval(`{ ${scr} }`);