@roomle/web-sdk 3.7.0-alpha.2 → 3.7.0-alpha.4
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/lib/{BufferGeometry-C696z6r3.mjs → BufferGeometry-BzmfTBQt.mjs} +1 -1
- package/lib/{BufferGeometry-C696z6r3.mjs.map → BufferGeometry-BzmfTBQt.mjs.map} +1 -1
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{GLTFExporter-AfQIvZAD.mjs → GLTFExporter-CyhgWPq0.mjs} +2 -2
- package/lib/{GLTFExporter-AfQIvZAD.mjs.map → GLTFExporter-CyhgWPq0.mjs.map} +1 -1
- package/lib/{PointLightHelper-wVSmrAnD.mjs → PointLightHelper-DwIXACyT.mjs} +2 -2
- package/lib/{PointLightHelper-wVSmrAnD.mjs.map → PointLightHelper-DwIXACyT.mjs.map} +1 -1
- package/lib/RoomleCore.js +4 -4
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{SpotLightHelper-C7J95t4f.mjs → SpotLightHelper-CfLHM7LU.mjs} +2 -2
- package/lib/{SpotLightHelper-C7J95t4f.mjs.map → SpotLightHelper-CfLHM7LU.mjs.map} +1 -1
- package/lib/{USDZExporter-BBk0APeK.mjs → USDZExporter-kmxcTvnQ.mjs} +2 -2
- package/lib/{USDZExporter-BBk0APeK.mjs.map → USDZExporter-kmxcTvnQ.mjs.map} +1 -1
- package/lib/{api-oYzhcs_W.mjs → api-X1dDTDvL.mjs} +2 -2
- package/lib/{api-oYzhcs_W.mjs.map → api-X1dDTDvL.mjs.map} +1 -1
- package/lib/{banana-for-scale-D8t2dmc7.mjs → banana-for-scale-Bpf8RfLi.mjs} +4 -4
- package/lib/{banana-for-scale-D8t2dmc7.mjs.map → banana-for-scale-Bpf8RfLi.mjs.map} +1 -1
- package/lib/budgeteer.sw-CQWYbQSc.mjs.map +1 -1
- package/lib/budgeteer.sw.js +1 -1
- package/lib/{common-utils-qErzZAiR.mjs → common-utils-DMI8Yuhe.mjs} +5 -3
- package/lib/common-utils-DMI8Yuhe.mjs.map +1 -0
- package/lib/{component-dimensioning-DlB7-9Om.mjs → component-dimensioning-MtS9xiY-.mjs} +15 -15
- package/lib/{component-dimensioning-DlB7-9Om.mjs.map → component-dimensioning-MtS9xiY-.mjs.map} +1 -1
- package/lib/{component-raycast-helper-C6ptEb0K.mjs → component-raycast-helper-C1qWqpRH.mjs} +13 -9
- package/lib/component-raycast-helper-C1qWqpRH.mjs.map +1 -0
- package/lib/configurator-C5t3clCx.mjs +2 -0
- package/lib/{configurator-CRMunIq7.mjs → configurator-Cg1a9XSL.mjs} +4 -4
- package/lib/{configurator-CRMunIq7.mjs.map → configurator-Cg1a9XSL.mjs.map} +1 -1
- package/lib/{continuous-drawing-helper-BwulJHKj.mjs → continuous-drawing-helper-CQx5Sbns.mjs} +3 -3
- package/lib/{continuous-drawing-helper-BwulJHKj.mjs.map → continuous-drawing-helper-CQx5Sbns.mjs.map} +1 -1
- package/lib/{dat.gui.module-CZHqOVGq.mjs → dat.gui.module-CZ-DIWHM.mjs} +1 -1
- package/lib/{dat.gui.module-CZHqOVGq.mjs.map → dat.gui.module-CZ-DIWHM.mjs.map} +1 -1
- package/lib/{decorate-BAtqSPNS.mjs → decorate-Bck1_lG8.mjs} +1 -1
- package/lib/{decorate-BAtqSPNS.mjs.map → decorate-Bck1_lG8.mjs.map} +1 -1
- package/lib/dimensioning-helper-Bfe0fImX.mjs +2 -0
- package/lib/{dimensioning-helper--Y0Y-Wr1.mjs → dimensioning-helper-GPn7Z8GE.mjs} +7 -7
- package/lib/{dimensioning-helper--Y0Y-Wr1.mjs.map → dimensioning-helper-GPn7Z8GE.mjs.map} +1 -1
- package/lib/glb-viewer-DIEpkrvY.mjs +2 -0
- package/lib/{glb-viewer-CXEoIw1b.mjs → glb-viewer-tgKOPCaI.mjs} +44 -45
- package/lib/glb-viewer-tgKOPCaI.mjs.map +1 -0
- package/lib/highlight-coordinator-DRHeEU-E.mjs +116 -0
- package/lib/highlight-coordinator-DRHeEU-E.mjs.map +1 -0
- package/lib/{homag-intelligence-gb9MqBrz.mjs → homag-intelligence-D5mCTWgG.mjs} +19 -11
- package/lib/homag-intelligence-D5mCTWgG.mjs.map +1 -0
- package/lib/{imos-ix-poc-export-helper-CW7QZhhn.mjs → imos-ix-poc-export-helper-BKFs_Yhm.mjs} +5 -5
- package/lib/{imos-ix-poc-export-helper-CW7QZhhn.mjs.map → imos-ix-poc-export-helper-BKFs_Yhm.mjs.map} +1 -1
- package/lib/kernel-C7YDLxq8.mjs.map +1 -1
- package/lib/{kernel-utils-DCnHzW4n.mjs → kernel-utils-B80amC-l.mjs} +2 -2
- package/lib/{kernel-utils-DCnHzW4n.mjs.map → kernel-utils-B80amC-l.mjs.map} +1 -1
- package/lib/{layer-CFAr2mK_.mjs → layer-BfckfWZz.mjs} +1 -1
- package/lib/{layer-CFAr2mK_.mjs.map → layer-BfckfWZz.mjs.map} +1 -1
- package/lib/{main-BJZ9-cDk.mjs → main-CJ5TNhBt.mjs} +2518 -2554
- package/lib/main-CJ5TNhBt.mjs.map +1 -0
- package/lib/{material-viewer-D8Nmpwg0.mjs → material-viewer-DCqZzMZN.mjs} +40 -35
- package/lib/material-viewer-DCqZzMZN.mjs.map +1 -0
- package/lib/packages-DuOz6rk6.mjs +4 -0
- package/lib/{planner-5VarJrpy.mjs → planner-CSboZram.mjs} +3 -3
- package/lib/{planner-5VarJrpy.mjs.map → planner-CSboZram.mjs.map} +1 -1
- package/lib/planner-CWPqJktz.mjs +2 -0
- package/lib/{plugin-system-DInww4H_.mjs → plugin-system-DD0Z9Jvt.mjs} +3 -3
- package/lib/{plugin-system-DInww4H_.mjs.map → plugin-system-DD0Z9Jvt.mjs.map} +1 -1
- package/lib/{roomle-headless-setup-LoBO7UJe.mjs → roomle-headless-setup-nsoGENQV.mjs} +1 -1
- package/lib/{roomle-headless-setup-LoBO7UJe.mjs.map → roomle-headless-setup-nsoGENQV.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +252 -106
- package/lib/roomle-headless.js +20 -17
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-renderer-DVlJsHYn.mjs → roomle-renderer-BEJNPCKx.mjs} +2 -2
- package/lib/roomle-renderer-BEJNPCKx.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +252 -106
- package/lib/roomle-sdk.js +6 -6
- package/lib/roomle-webgpu-renderer-D5flithq.mjs +1502 -0
- package/lib/roomle-webgpu-renderer-D5flithq.mjs.map +1 -0
- package/lib/{scene-renderer-BHZrQYAH.mjs → scene-renderer-Dm1kij1z.mjs} +26 -26
- package/lib/scene-renderer-Dm1kij1z.mjs.map +1 -0
- package/lib/{script-loader-gpkcl1h-.mjs → script-loader-DqaDm1FG.mjs} +3 -3
- package/lib/{script-loader-gpkcl1h-.mjs.map → script-loader-DqaDm1FG.mjs.map} +1 -1
- package/lib/static/packages/workers/generated/budgeteer.sw.js +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.d.ts +4 -4
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js +7 -7
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +28 -8
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorUtils.js +27 -11
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorUtils.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.d.ts +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.js +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +37 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js +6 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.d.ts +4 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.js +16 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +4 -4
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-Cv5SoEWT.mjs → stats-helper-D7a7oxnj.mjs} +3 -3
- package/lib/{stats-helper-Cv5SoEWT.mjs.map → stats-helper-D7a7oxnj.mjs.map} +1 -1
- package/lib/{three.core-mM-jZdgg.mjs → three.core-BmQnspOL.mjs} +819 -816
- package/lib/{three.core-mM-jZdgg.mjs.map → three.core-BmQnspOL.mjs.map} +1 -1
- package/lib/{three.module-Bmy3sVQ-.mjs → three.module-DkrZwaid.mjs} +455 -455
- package/lib/{three.module-Bmy3sVQ-.mjs.map → three.module-DkrZwaid.mjs.map} +1 -1
- package/lib/{three.webgpu-BbVYfCDp.mjs → three.webgpu-DLZjhIYv.mjs} +1517 -1517
- package/lib/{three.webgpu-BbVYfCDp.mjs.map → three.webgpu-DLZjhIYv.mjs.map} +1 -1
- package/lib/three.webgpu-RkQxSIwG.mjs +3 -0
- package/lib/{threejs-utils-Bq4pVWBA.mjs → threejs-utils-CrK_gp1x.mjs} +67 -63
- package/lib/threejs-utils-CrK_gp1x.mjs.map +1 -0
- package/lib/{tools-core-DqnhFefF.mjs → tools-core-CZWgXTFV.mjs} +3 -3
- package/lib/{tools-core-DqnhFefF.mjs.map → tools-core-CZWgXTFV.mjs.map} +1 -1
- package/package.json +1 -1
- package/lib/common-utils-qErzZAiR.mjs.map +0 -1
- package/lib/component-raycast-helper-C6ptEb0K.mjs.map +0 -1
- package/lib/component-raycast-helper-LrhRpeDD.mjs +0 -2
- package/lib/configurator-DqiW717d.mjs +0 -2
- package/lib/dimensioning-helper-BpUreWo2.mjs +0 -2
- package/lib/glb-viewer-CXEoIw1b.mjs.map +0 -1
- package/lib/glb-viewer-IDXgmONx.mjs +0 -2
- package/lib/homag-intelligence-gb9MqBrz.mjs.map +0 -1
- package/lib/main-BJZ9-cDk.mjs.map +0 -1
- package/lib/material-viewer-D8Nmpwg0.mjs.map +0 -1
- package/lib/packages-Uv53SHfb.mjs +0 -4
- package/lib/planner-DJcn-iih.mjs +0 -2
- package/lib/roomle-renderer-DVlJsHYn.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer-CVxBRv6o.mjs +0 -217
- package/lib/roomle-webgpu-renderer-CVxBRv6o.mjs.map +0 -1
- package/lib/scene-renderer-BHZrQYAH.mjs.map +0 -1
- package/lib/three.webgpu-Bnp8Whu8.mjs +0 -3
- package/lib/threejs-utils-Bq4pVWBA.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $t as e, B as t, Bt as n, C as r, Dn as i, Hr as a, J as o, Kt as s, Or as c, R as l, Rt as u, Si as d, T as f, Ti as p, Tn as m, Ur as h, Vr as g, Wn as _, X as v, ai as y, an as b, bi as x, cn as S, d as C, di as w, dn as T, fi as E, gn as D, hn as O, it as ee, jr as k, kn as te, ln as ne, m as A, mi as j, mn as M, mt as N, oi as re, on as P, ot as ie, pn as ae, pt as F, q as I, rn as L, sn as R, st as oe, ti as se, v as ce, wr as le, x as z, xi as B, yn as V } from "./three.core-
|
|
2
|
-
import { r as ue } from "./three.module-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
1
|
+
import { $t as e, B as t, Bt as n, C as r, Dn as i, Hr as a, J as o, Kt as s, Or as c, R as l, Rt as u, Si as d, T as f, Ti as p, Tn as m, Ur as h, Vr as g, Wn as _, X as v, ai as y, an as b, bi as x, cn as S, d as C, di as w, dn as T, fi as E, gn as D, hn as O, it as ee, jr as k, kn as te, ln as ne, m as A, mi as j, mn as M, mt as N, oi as re, on as P, ot as ie, pn as ae, pt as F, q as I, rn as L, sn as R, st as oe, ti as se, v as ce, wr as le, x as z, xi as B, yn as V } from "./three.core-BmQnspOL.mjs";
|
|
2
|
+
import { r as ue } from "./three.module-DkrZwaid.mjs";
|
|
3
|
+
import { n as de, r as fe, t as pe } from "./decorate-Bck1_lG8.mjs";
|
|
4
|
+
import "./dimensioning-helper-GPn7Z8GE.mjs";
|
|
5
|
+
import { h as me } from "./common-utils-DMI8Yuhe.mjs";
|
|
6
|
+
import { k as he } from "./threejs-utils-CrK_gp1x.mjs";
|
|
7
7
|
//#region packages/common-core/src/webgl/renderer/shader-utility.ts
|
|
8
8
|
var ge = {
|
|
9
9
|
uniforms: {
|
|
@@ -1498,7 +1498,7 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
1498
1498
|
return this._renderPassManager.outlinePass;
|
|
1499
1499
|
}
|
|
1500
1500
|
constructor(e, t, n) {
|
|
1501
|
-
this._effectComposer = null, this.outlinePassActivated = !1, this._renderPassManager = e, this._effectComposer = t, this.parameters = {
|
|
1501
|
+
this._effectComposer = null, this.outlinePassActivated = !1, this._parameterNeedsUpdate = !1, this._renderPassManager = e, this._effectComposer = t, this.parameters = {
|
|
1502
1502
|
enabled: !0,
|
|
1503
1503
|
edgeStrength: 2,
|
|
1504
1504
|
edgeGlow: 1,
|
|
@@ -1511,10 +1511,10 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
updateParameters(e) {
|
|
1514
|
-
for (let t in e) this.parameters.hasOwnProperty(t) && (this.parameters[t] = e[t]);
|
|
1514
|
+
for (let t in e) this.parameters.hasOwnProperty(t) && (this.parameters[t] = e[t], this._parameterNeedsUpdate = !0);
|
|
1515
1515
|
}
|
|
1516
1516
|
applyParameters() {
|
|
1517
|
-
this.outlinePass && (this.outlinePass.edgeStrength = this.parameters.edgeStrength, this.outlinePass.edgeGlow = this.parameters.edgeGlow, this.outlinePass.edgeThickness = this.parameters.edgeThickness, this.outlinePass.pulsePeriod = this.parameters.pulsePeriod, this.outlinePass.usePatternTexture = this.parameters.usePatternTexture, this.outlinePass.visibleEdgeColor.set(this.parameters.visibleEdgeColor), this.outlinePass.hiddenEdgeColor.set(this.parameters.hiddenEdgeColor));
|
|
1517
|
+
this.outlinePass && (this._parameterNeedsUpdate = !1, this.outlinePass.edgeStrength = this.parameters.edgeStrength, this.outlinePass.edgeGlow = this.parameters.edgeGlow, this.outlinePass.edgeThickness = this.parameters.edgeThickness, this.outlinePass.pulsePeriod = this.parameters.pulsePeriod, this.outlinePass.usePatternTexture = this.parameters.usePatternTexture, this.outlinePass.visibleEdgeColor.set(this.parameters.visibleEdgeColor), this.outlinePass.hiddenEdgeColor.set(this.parameters.hiddenEdgeColor));
|
|
1518
1518
|
}
|
|
1519
1519
|
activateOutline(e, t) {
|
|
1520
1520
|
if (!this.parameters.enabled) {
|
|
@@ -1528,7 +1528,7 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
1528
1528
|
this.outlinePassActivated &&= (this.outlinePass && this._effectComposer && this._effectComposer.removePass(this.outlinePass), !1);
|
|
1529
1529
|
}
|
|
1530
1530
|
updateOutline(e, t, n) {
|
|
1531
|
-
n.length > 0 ? (this.activateOutline(e, t), this.outlinePass && (this.outlinePass.selectedObjects = n)) : this.deactivateOutline();
|
|
1531
|
+
n.length > 0 ? (this._parameterNeedsUpdate && this.applyParameters(), this.activateOutline(e, t), this.outlinePass && (this.outlinePass.selectedObjects = n)) : this.deactivateOutline();
|
|
1532
1532
|
}
|
|
1533
1533
|
}, nt = {
|
|
1534
1534
|
DEFAULT: "default",
|
|
@@ -1562,7 +1562,7 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
1562
1562
|
if (e.length === 0) return null;
|
|
1563
1563
|
if (e.length === 1) return e[0];
|
|
1564
1564
|
let t = e[0];
|
|
1565
|
-
for (let n = 1; n < e.length; n++) t =
|
|
1565
|
+
for (let n = 1; n < e.length; n++) t = me(t, e[n]);
|
|
1566
1566
|
return t;
|
|
1567
1567
|
}, at = (e) => e ? { groundReflectionParameters: { enabled: !1 } } : null, ot = (e) => !e || e === nt.DEFAULT ? null : e === nt.BRIGHT ? rt : null, $ = (e) => Math.max(0, Math.min(1, e)), st = (e) => {
|
|
1568
1568
|
let t = {
|
|
@@ -2865,8 +2865,8 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
2865
2865
|
return t;
|
|
2866
2866
|
}, this._numberOfSamples = e?.numberOfSamples ?? 1e3, this._width = e?.width ?? 1024, this._height = e?.height ?? 512, this._sampleThreshold = e?.sampleThreshold ?? .707, this.pointDistance = Math.sqrt(4 * Math.PI) / Math.sqrt(this._numberOfSamples), this.pixelDistance = Math.sqrt(2) * Math.PI * 2 / this._width, this.samplePoints = this._createEquirectangularSamplePoints(this._numberOfSamples), this.sampleUVs = this.samplePoints.map((e) => Yt(e));
|
|
2867
2867
|
}
|
|
2868
|
-
detectLightSources(e, t
|
|
2869
|
-
this.
|
|
2868
|
+
detectLightSources(e, t) {
|
|
2869
|
+
this._textureConverter = this._textureConverter ?? new Xt(), this.grayscaleTexture = this._textureConverter.newGrayscaleTexture(e, t, this._width, this._height), this.detectorArray = this._redFromRgbaToNormalizedFloatArray(this.grayscaleTexture.pixels, this.grayscaleTexture.sRgbaPixels), this.detectorTexture = this._grayscaleTextureFromFloatArray(this.detectorArray, this._width, this._height), this.lightSamples = this._filterLightSamples(this._sampleThreshold), this.lightGraph = this._findClusterSegments(this.lightSamples, this._sampleThreshold), this.lightGraph.findConnectedComponents(), this.lightSources = this.createLightSourcesFromLightGraph(this.lightSamples, this.lightGraph), this.lightSources.sort((e, t) => t.maxIntensity - e.maxIntensity);
|
|
2870
2870
|
}
|
|
2871
2871
|
_redFromRgbaToNormalizedFloatArray(e, t, n) {
|
|
2872
2872
|
let i = new Float32Array(e.length / 4), a = 1, o = 0;
|
|
@@ -2902,13 +2902,7 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
2902
2902
|
return this.detectorArray[n];
|
|
2903
2903
|
}
|
|
2904
2904
|
_originalLuminanceValueFromUV(e) {
|
|
2905
|
-
|
|
2906
|
-
let t = Math.floor(e.x * this.textureData._width), n = Math.floor(e.y * this.textureData._height), r = 0;
|
|
2907
|
-
for (let e = Math.max(0, t - 2); e < Math.max(0, t + 2); ++e) for (let t = Math.max(0, n - 2); t < Math.max(0, n + 2); ++t) {
|
|
2908
|
-
let n = t * this.textureData._width + e, i = (this.textureData.data[n * 4] + this.textureData.data[n * 4 + 1] + this.textureData.data[n * 4 + 2]) / 3;
|
|
2909
|
-
r = Math.max(r, i);
|
|
2910
|
-
}
|
|
2911
|
-
return r;
|
|
2905
|
+
return this._detectorTextureLuminanceValueFromUV(e) * 256;
|
|
2912
2906
|
}
|
|
2913
2907
|
_findClusterSegments(e, t) {
|
|
2914
2908
|
let n = this.pixelDistance * 2, r = this.pointDistance * 1.5, i = new tn(e.length);
|
|
@@ -3473,7 +3467,7 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
3473
3467
|
updateShadowAndAoPass: !1,
|
|
3474
3468
|
updateOutlinePass: !1,
|
|
3475
3469
|
updateDebugPass: !1
|
|
3476
|
-
}, this.aoPassMapTexture = null, this._lutMap = /* @__PURE__ */ new Map(), this._lutPassParameters = _n, this.lutPassNeedsUpdate = !1, this._renderToRenderTarget = !1, this._creator_ = e, this._sceneRenderer = t, this._maxSamples =
|
|
3470
|
+
}, this.aoPassMapTexture = null, this._lutMap = /* @__PURE__ */ new Map(), this._lutPassParameters = _n, this.lutPassNeedsUpdate = !1, this._renderToRenderTarget = !1, this._creator_ = e, this._sceneRenderer = t, this._maxSamples = he(this._sceneRenderer.renderer);
|
|
3477
3471
|
let n = this._sceneRenderer.linearAoFilter, r = n ? this._maxSamples : 0, i = n ? this._maxSamples : 0;
|
|
3478
3472
|
this._sceneRenderPass = new an(this), this._bakedGroundContactShadowPass = new yt(this, this._sceneRenderer.renderer, this._sceneRenderer.groundGroup, { sharedShadowGroundPlane: this._sceneRenderer.shadowAndAoGroundPlane }), this._gBufferRenderPass = new wt(this, {
|
|
3479
3473
|
shared: !0,
|
|
@@ -3639,7 +3633,7 @@ var we = "varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position
|
|
|
3639
3633
|
e.setRenderTarget(n), this._bakedGroundContactShadowPass.renderPass(e), this._passUpdateStates.updateGBuffer && this._gBufferRenderPass.renderPass(e), this._passUpdateStates.updateScreenSpaceShadow && this._screenSpaceShadowMapPass.renderPass(e), this._passUpdateStates.updateShadowAndAoPass && this._shadowAndAoPass.renderPass(e), this._updateMaterials(e, t), this._sceneRenderPass.renderPass(e), this._passUpdateStates.updateGroundReflection && this._groundReflectionPass.renderPass(e), this._passUpdateStates.updateShadowAndAoPass && !this._shadowAndAoPass.parameters.applyToMaterial && this._shadowAndAoPass.renderToTarget(e), this._lutPassParameters.enabled && (e.setRenderTarget(r), this._outputPass.renderToScreen = !1, this._outputPass.render(e, e.getRenderTarget(), n, 0, !1), e.setRenderTarget(null), this._lutPass.renderToScreen = !0, this._lutPass.render(e, e.getRenderTarget(), r, 0, !1)), this._passUpdateStates.updateOutlinePass && this._outlinePass?.renderPass(e), this._passUpdateStates.updateDebugPass && this._debugPass?.renderPass(e);
|
|
3640
3634
|
}
|
|
3641
3635
|
};
|
|
3642
|
-
|
|
3636
|
+
pe([fe, de("design:type", Object)], vn.prototype, "_initData", void 0);
|
|
3643
3637
|
//#endregion
|
|
3644
3638
|
//#region packages/common-core/src/webgl/renderer/scene-renderer.ts
|
|
3645
3639
|
var yn = {
|
|
@@ -3729,13 +3723,19 @@ var yn = {
|
|
|
3729
3723
|
setQualityMapAndShadingParameters(e, t) {
|
|
3730
3724
|
this._qualityMap = e, this._customShadingParameters = t, this.applyCurrentParameters(), this.requestUpdateOfPasses();
|
|
3731
3725
|
}
|
|
3726
|
+
setCustomOutlineParameters(e) {
|
|
3727
|
+
this._customOutlineParameters = e, this.applyCurrentParameters();
|
|
3728
|
+
}
|
|
3732
3729
|
applyCurrentParameters() {
|
|
3733
3730
|
let e = [];
|
|
3734
3731
|
this._qualityMap.has(this._qualityLevel) && e.push(this._qualityMap.get(this._qualityLevel));
|
|
3735
3732
|
let t = ot(this._shadingType);
|
|
3736
3733
|
t && e.push(t);
|
|
3737
3734
|
let n = at(this.uiInteractionMode);
|
|
3738
|
-
if (n && e.push(n), this._customShadingParameters && e.push(st(this._customShadingParameters)), e.
|
|
3735
|
+
if (n && e.push(n), this._customShadingParameters && e.push(st(this._customShadingParameters)), this._customOutlineParameters && e.push({ outlineParameters: {
|
|
3736
|
+
visibleEdgeColor: this._customOutlineParameters.outlineVisibleEdgeColor,
|
|
3737
|
+
hiddenEdgeColor: this._customOutlineParameters.outlineHiddenEdgeColor
|
|
3738
|
+
} }), e.length > 0) {
|
|
3739
3739
|
let t = it(...e);
|
|
3740
3740
|
this.updateParameters(t), this.bakedGroundContactShadowPass.applyParameters();
|
|
3741
3741
|
}
|
|
@@ -3791,7 +3791,7 @@ var yn = {
|
|
|
3791
3791
|
let n = e.userData;
|
|
3792
3792
|
if (t.userData?.environmentDefinition.needsUpdate || !n.environmentTexture || n.environmentDefinition !== t.userData.environmentDefinition) {
|
|
3793
3793
|
let r = t.userData.environmentDefinition;
|
|
3794
|
-
if (n.environmentDefinition = r, n.environmentTexture = r.createNewEnvironment(e), t.userData.shadowFromEnvironment
|
|
3794
|
+
if (n.environmentDefinition = r, n.environmentTexture = r.createNewEnvironment(e), t.userData.shadowFromEnvironment) {
|
|
3795
3795
|
let e = r.maxNoOfLightSources;
|
|
3796
3796
|
e !== void 0 && (this.screenSpaceShadowMapPass.parameters.maximumNumberOfLightSources = e), this.createShadowFromLightSources(t, r.lightSources);
|
|
3797
3797
|
}
|
|
@@ -3802,8 +3802,8 @@ var yn = {
|
|
|
3802
3802
|
t?.projectionMatrix && (e.add(this.groundGroup), this._updateEnvironment(this.renderer, e), this.outlineRenderer.updateOutline(e, t, this.enableObjectSelection ? this.selectedObjects : []), this._renderPassManager.updatePasses(this.renderer, e, t), this._renderPassManager.renderPasses(this.renderer, e), e.remove(this.groundGroup));
|
|
3803
3803
|
}
|
|
3804
3804
|
};
|
|
3805
|
-
|
|
3805
|
+
pe([fe, de("design:type", Object)], bn.prototype, "_initData", void 0);
|
|
3806
3806
|
//#endregion
|
|
3807
3807
|
export { At as a, Be as c, $t as i, bn as n, nt as o, Qt as r, Z as s, yn as t };
|
|
3808
3808
|
|
|
3809
|
-
//# sourceMappingURL=scene-renderer-
|
|
3809
|
+
//# sourceMappingURL=scene-renderer-Dm1kij1z.mjs.map
|