← Commit history

shadows toggle: use scene.shadowsEnabled master switch - freezing the map left all layer shadows rendered-frozen (only the ground appeared to turn off)

John Lauer ·29a5b244e0 ·3mo ago ·parent ea8e614
3 files changed +13−5
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "type": "component",-  "version": "0.1.79",+  "version": "0.1.80",   "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",   "tags": [     "hardware"
page.json+10−3
@@ -4,9 +4,16 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "brief": "Buck-boost 1S-4S battery charger board (TI BQ25792) with 14 Adom machine pins, by Adonis",-  "version": "0.1.79",+  "version": "0.1.80",   "tags": [-    "hardware"+    "adom",+    "adom-modular",+    "component",+    "charger",+    "battery",+    "bq25792",+    "power",+    "usb-c"   ],   "license": "proprietary",   "component": {@@ -49,7 +56,7 @@     "email": "[email protected]"   },   "visibility": "public",-  "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",+  "description": "BQ25792 Charger - a buck-boost 1S-4S battery charger board (Texas Instruments BQ25792) designed by Adonis in Fusion 360, with 14 Adom machine pins for the modular stack. Interactive colored 3D model, schematic and layout views.",   "dependencies": {},   "files": [     "README.md",
readme.html+2−1
@@ -635,8 +635,9 @@ exported bodies + design rules.</p>   const btnShadows=document.getElementById("btn-shadows");   btnShadows.addEventListener("click",function(){     shadowsOn=!shadowsOn;+    const sc=viewer.getScene();+    sc.shadowsEnabled=shadowsOn;   // MASTER switch: kills/restores ALL shadows (freezing the map just kept them frozen-on)     if(SHADOW_GEN && SHADOW_GEN.getShadowMap()) SHADOW_GEN.getShadowMap().refreshRate = shadowsOn ? window.BABYLON.RenderTargetTexture.REFRESHRATE_RENDER_ONEVERYFRAME : 0;-    if(GROUND_PLANE) GROUND_PLANE.receiveShadows = shadowsOn;     btnShadows.classList.toggle("active",shadowsOn);     set(shadowsOn?"shadows on":"shadows off");   });