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.
package/dist/three-editor.es.js
CHANGED
|
@@ -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 =
|
|
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}`),
|
|
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,
|
|
2308
|
-
console.log(`[OutlinePass]
|
|
2309
|
-
const
|
|
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
|
-
|
|
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(
|