endset_three_editor 0.5.7 → 0.5.9

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.
@@ -2283,7 +2283,7 @@ const b = {
2283
2283
  selectedObject: null
2284
2284
  };
2285
2285
  let Rt = !1, We = !1, Ie = null, ye = null;
2286
- const po = 16755200, Fs = 52479;
2286
+ const po = 16755200, Fs = 16755200;
2287
2287
  let rs = [], xt = [], Dt = !0, Xt = [], Wt = !0, Oe = null, as = null, Et = null, xe = [];
2288
2288
  const je = /* @__PURE__ */ new Map();
2289
2289
  let jt, kt = null, at = null, lt = null;
@@ -2298,15 +2298,15 @@ function go() {
2298
2298
  }
2299
2299
  function bo() {
2300
2300
  const r = go(), e = r >= 1.5, t = new w.WebGLRenderer({ antialias: e, alpha: !0 });
2301
- t.setSize(b.container.clientWidth, b.container.clientHeight), t.setPixelRatio(r), console.log(`[Renderer] css=${b.container.clientWidth}×${b.container.clientHeight}, dpr=${window.devicePixelRatio}, targetRatio=${r}, MSAA=${e}`), t.shadowMap.enabled = !0, t.shadowMap.type = w.PCFSoftShadowMap, b.container.appendChild(t.domElement), b.renderer = t;
2301
+ t.setSize(b.container.clientWidth, b.container.clientHeight), t.setPixelRatio(r), console.log(`[Renderer] css=${b.container.clientWidth}×${b.container.clientHeight}, dpr=${window.devicePixelRatio}, targetRatio=${r}, MSAA=${e}`), b.container.appendChild(t.domElement), b.renderer = t;
2302
2302
  }
2303
2303
  function Co() {
2304
2304
  if (!b.renderer || !b.scene || !b.camera) return;
2305
2305
  const r = new Ji(b.renderer);
2306
2306
  r.addPass(new Qi(b.scene, b.camera)), r.addPass(new Yi());
2307
- const e = window.innerWidth * window.devicePixelRatio, n = e / 1920, i = Math.round(4 * Math.min(Math.max(n, 0.6), 6));
2308
- console.log(`[OutlinePass] logWidth=${window.innerWidth}px, dpr=${window.devicePixelRatio}, physical=${e}px, scale=${n.toFixed(2)}, thickness=${i}`);
2309
- const o = new Ce(
2307
+ const e = window.innerWidth * window.devicePixelRatio, t = window.innerWidth * window.devicePixelRatio * window.innerHeight * window.devicePixelRatio, s = e / 1920, o = Math.round(4 * Math.min(Math.max(s, 0.6), 8)), a = t > 25e6 ? 1 : t > 12e6 ? 1.5 : 2;
2308
+ console.log(`[OutlinePass] totalPx=${t}, downSample=${a}, dpr=${window.devicePixelRatio}, thickness=${o}`);
2309
+ const l = new Ce(
2310
2310
  new w.Vector2(
2311
2311
  b.container.clientWidth,
2312
2312
  b.container.clientHeight
@@ -2314,7 +2314,7 @@ function Co() {
2314
2314
  b.scene,
2315
2315
  b.camera
2316
2316
  );
2317
- o.edgeStrength = 8, o.edgeGlow = 1.5, o.edgeThickness = i, o.visibleEdgeColor.set(Fs), o.hiddenEdgeColor.set(Fs), o.downSampleRatio = 2, o.pulsePeriod = 2, r.addPass(o), Ie = r, ye = o;
2317
+ l.edgeStrength = 8, l.edgeGlow = 1.5, l.edgeThickness = o, l.visibleEdgeColor.set(Fs), l.hiddenEdgeColor.set(Fs), l.downSampleRatio = a, l.pulsePeriod = 2, r.addPass(l), Ie = r, ye = l;
2318
2318
  }
2319
2319
  function Io() {
2320
2320
  b.scene = new w.Scene(), b.scene.name = "sl_scene", new w.TextureLoader().load(