@adatechnology/game-destruction-three 0.15.1 → 0.15.3
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 +3 -1
- package/dist/index.global.js.map +1 -1
- package/package.json +5 -5
package/dist/index.global.js
CHANGED
|
@@ -115,6 +115,7 @@ var GameDestructionThree = (() => {
|
|
|
115
115
|
const length = Math.hypot(direction[0], direction[1], direction[2]);
|
|
116
116
|
return { speed, direction: [direction[0] / length, direction[1] / length, direction[2] / length], distance, falloff };
|
|
117
117
|
}
|
|
118
|
+
var DEFAULT_BLAST_IMPULSE = { bodyArea: 0.7, lift: 0.15, minSpeed: 0.3, tntPerJoule: 0.24 / 2e5 };
|
|
118
119
|
var DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024;
|
|
119
120
|
var DEFERRED_QUEUE_ID = {
|
|
120
121
|
DESTRUCTION_EVENTS: "destruction.events",
|
|
@@ -7729,7 +7730,7 @@ var GameDestructionThree = (() => {
|
|
|
7729
7730
|
};
|
|
7730
7731
|
var EFFECT_STEP_SECONDS = 1 / 50;
|
|
7731
7732
|
|
|
7732
|
-
// ../game-vfx-three/dist/chunk-
|
|
7733
|
+
// ../game-vfx-three/dist/chunk-2MZDWTHX.js
|
|
7733
7734
|
var GLOW_VERTEX = `attribute vec4 aP;attribute vec4 aC;varying vec2 vU;varying vec4 vC;
|
|
7734
7735
|
void main(){vec3 R=vec3(viewMatrix[0][0],viewMatrix[1][0],viewMatrix[2][0]);vec3 Up=vec3(viewMatrix[0][1],viewMatrix[1][1],viewMatrix[2][1]);
|
|
7735
7736
|
vec3 wp=aP.xyz+(R*position.x+Up*position.y)*aP.w;vU=position.xy;vC=aC;gl_Position=projectionMatrix*viewMatrix*vec4(wp,1.);}`;
|
|
@@ -9109,6 +9110,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
|
|
|
9109
9110
|
drawCalls = Number(lastDrawn.puffs > 0) + Number(lastDrawn.sparks > 0) + Number(lastDrawn.glows > 0) + Number(chunks.rocks.count > 0) + Number(chunks.plates.count > 0) + Number(sprites.additive.geometry.drawRange.count > 0) + Number(sprites.normal.geometry.drawRange.count > 0) + lastDrawn.shocks * 2 + marks.count() + workshopCalls;
|
|
9110
9111
|
}
|
|
9111
9112
|
return {
|
|
9113
|
+
root,
|
|
9112
9114
|
world,
|
|
9113
9115
|
play(request) {
|
|
9114
9116
|
followCamera();
|