@umicat/three-sdk 0.24.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -797,6 +797,20 @@ export async function runEditorDesignPlayer3D(renderer, opts = {}) {
797
797
  const loaded = await loadScene3D(sceneData, manifest, { assetBase: '', designMode: true });
798
798
  worn = loaded.attachments;
799
799
  scene = loaded.scene;
800
+ // Atmospheric fog is a LOOK, and this view's job is to show where things
801
+ // are. Drop it — the background colour stays, because the sky orients you
802
+ // and hides nothing.
803
+ //
804
+ // Not a preference: it is structural. This player frames the WHOLE scene
805
+ // (see the auto-fit below), so its camera distance scales with the scene's
806
+ // size, while a game's fog is tuned for what a PLAYER sees from inside it.
807
+ // Any fog whose `far` is under roughly 1.6x the scene radius therefore
808
+ // swallows the entire level here — which is every sane gameplay fog. The
809
+ // 3D baseplate starter made it unmissable: a 32x32 plate under fog
810
+ // far=30 put the editor camera 36.8 units out, the plate's NEAREST point
811
+ // at 14.1 against a fog start of 14.0, and the whole thing rendered as a
812
+ // faint triangle dissolving into the sky.
813
+ scene.fog = null;
800
814
  entityByObject.clear();
801
815
  objectByEntity.clear();
802
816
  for (const [id, obj] of loaded.entities) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umicat/three-sdk",
3
- "version": "0.24.0",
3
+ "version": "1.0.1",
4
4
  "description": "Three.js runtime for Umicat games: the scene3d design format, its loader with physics, a kinematic character controller, and the Umicat platform via @umicat/platform-sdk.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",