@adatechnology/game-weather-three 0.6.16 → 0.6.18
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/index.global.js +29 -5
- package/dist/index.global.js.map +1 -1
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -108,6 +108,8 @@ var GameWeatherThree = (() => {
|
|
|
108
108
|
[DEFERRED_QUEUE_ID.DESTRUCTION_PREFIT]: { priority: 40, phase: "idle", minEveryFrames: 30 }
|
|
109
109
|
};
|
|
110
110
|
var MUST_DRAIN_QUEUE_IDS = /* @__PURE__ */ new Set([DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS, DEFERRED_QUEUE_ID.BREACH_CUT]);
|
|
111
|
+
var BODY_FOAM_SURFACES = ["hands", "arms", "torso", "hair", "mouth"];
|
|
112
|
+
var WASH_SURFACES = [...BODY_FOAM_SURFACES, "brush"];
|
|
111
113
|
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
112
114
|
function markKitOrigin(object, origin) {
|
|
113
115
|
const node = object;
|
|
@@ -868,14 +870,20 @@ void main() {
|
|
|
868
870
|
function createVec3(x = 0, y = 0, z = 0) {
|
|
869
871
|
return { x, y, z };
|
|
870
872
|
}
|
|
871
|
-
var
|
|
873
|
+
var PROBES = [Float64Array.of(1, 0, 0), Float64Array.of(-1, 0, 0), Float64Array.of(0, 0, 1), Float64Array.of(0, 0, -1), Float64Array.of(0, 1, 0)];
|
|
874
|
+
var KeptCut = class {
|
|
872
875
|
constructor() {
|
|
873
|
-
__publicField(this, "
|
|
874
|
-
__publicField(this, "
|
|
875
|
-
__publicField(this, "
|
|
876
|
+
__publicField(this, "on", false);
|
|
877
|
+
__publicField(this, "nx", 0.5);
|
|
878
|
+
__publicField(this, "ny", 0.5);
|
|
879
|
+
__publicField(this, "nz", 0.5);
|
|
880
|
+
__publicField(this, "d", 0.5);
|
|
876
881
|
}
|
|
877
882
|
};
|
|
878
|
-
|
|
883
|
+
function createCut() {
|
|
884
|
+
return new KeptCut();
|
|
885
|
+
}
|
|
886
|
+
var WAY = new Float64Array(3);
|
|
879
887
|
var call = (name) => (...args) => ({ $: name, a: args });
|
|
880
888
|
var rnd = call("rnd");
|
|
881
889
|
var rand = call("rand");
|
|
@@ -2827,6 +2835,22 @@ void main() {
|
|
|
2827
2835
|
var QUARTER_TURN2 = Math.PI / 2;
|
|
2828
2836
|
var QUARTER_TURN3 = Math.PI / 2;
|
|
2829
2837
|
var SCRATCH = createVec3();
|
|
2838
|
+
var SPRITE_REACH = 1;
|
|
2839
|
+
var SpriteCutView = class {
|
|
2840
|
+
constructor() {
|
|
2841
|
+
__publicField(this, "x", 0.5);
|
|
2842
|
+
__publicField(this, "y", 0.5);
|
|
2843
|
+
__publicField(this, "z", 0.5);
|
|
2844
|
+
__publicField(this, "vx", 0.5);
|
|
2845
|
+
__publicField(this, "vy", 0.5);
|
|
2846
|
+
__publicField(this, "vz", 0.5);
|
|
2847
|
+
__publicField(this, "t", 0.5);
|
|
2848
|
+
__publicField(this, "size", 0.5);
|
|
2849
|
+
__publicField(this, "reachOfSize", SPRITE_REACH);
|
|
2850
|
+
__publicField(this, "cuts", [createCut(), createCut(), createCut()]);
|
|
2851
|
+
}
|
|
2852
|
+
};
|
|
2853
|
+
var VIEW = new SpriteCutView();
|
|
2830
2854
|
var DEGREES = 180 / Math.PI;
|
|
2831
2855
|
|
|
2832
2856
|
// src/rain-near.ts
|