@adatechnology/game-weather-three 0.6.17 → 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 +27 -5
- package/dist/index.global.js.map +1 -1
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -870,14 +870,20 @@ void main() {
|
|
|
870
870
|
function createVec3(x = 0, y = 0, z = 0) {
|
|
871
871
|
return { x, y, z };
|
|
872
872
|
}
|
|
873
|
-
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 {
|
|
874
875
|
constructor() {
|
|
875
|
-
__publicField(this, "
|
|
876
|
-
__publicField(this, "
|
|
877
|
-
__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);
|
|
878
881
|
}
|
|
879
882
|
};
|
|
880
|
-
|
|
883
|
+
function createCut() {
|
|
884
|
+
return new KeptCut();
|
|
885
|
+
}
|
|
886
|
+
var WAY = new Float64Array(3);
|
|
881
887
|
var call = (name) => (...args) => ({ $: name, a: args });
|
|
882
888
|
var rnd = call("rnd");
|
|
883
889
|
var rand = call("rand");
|
|
@@ -2829,6 +2835,22 @@ void main() {
|
|
|
2829
2835
|
var QUARTER_TURN2 = Math.PI / 2;
|
|
2830
2836
|
var QUARTER_TURN3 = Math.PI / 2;
|
|
2831
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();
|
|
2832
2854
|
var DEGREES = 180 / Math.PI;
|
|
2833
2855
|
|
|
2834
2856
|
// src/rain-near.ts
|