@adatechnology/game-fluids-three 0.4.15 → 0.4.17
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 +14 -8
- package/dist/index.global.js.map +1 -1
- package/package.json +5 -5
package/dist/index.global.js
CHANGED
|
@@ -157,7 +157,8 @@ var GameFluidsThree = (() => {
|
|
|
157
157
|
var EVENT_BUDGET = { particles: 400, debris: 40, blastLights: 4, fireLights: 2 };
|
|
158
158
|
var explosion_aliases_default = {
|
|
159
159
|
carl_gustaf_84mm: "at4_84mm",
|
|
160
|
-
vog_25: "m79_40mm"
|
|
160
|
+
vog_25: "m79_40mm",
|
|
161
|
+
semtex: "c4"
|
|
161
162
|
};
|
|
162
163
|
var explosions_default = {
|
|
163
164
|
m67: {
|
|
@@ -6134,8 +6135,8 @@ var GameFluidsThree = (() => {
|
|
|
6134
6135
|
id: "dust",
|
|
6135
6136
|
additive: false,
|
|
6136
6137
|
life: [
|
|
6137
|
-
|
|
6138
|
-
|
|
6138
|
+
2,
|
|
6139
|
+
5
|
|
6139
6140
|
],
|
|
6140
6141
|
size: [
|
|
6141
6142
|
0.08,
|
|
@@ -6202,8 +6203,8 @@ var GameFluidsThree = (() => {
|
|
|
6202
6203
|
id: "chips",
|
|
6203
6204
|
additive: false,
|
|
6204
6205
|
life: [
|
|
6205
|
-
|
|
6206
|
-
|
|
6206
|
+
2,
|
|
6207
|
+
4
|
|
6207
6208
|
],
|
|
6208
6209
|
size: [
|
|
6209
6210
|
0.025,
|
|
@@ -7634,7 +7635,7 @@ var GameFluidsThree = (() => {
|
|
|
7634
7635
|
};
|
|
7635
7636
|
var EFFECT_STEP_SECONDS = 1 / 50;
|
|
7636
7637
|
|
|
7637
|
-
// ../game-vfx-three/dist/chunk-
|
|
7638
|
+
// ../game-vfx-three/dist/chunk-IOGYK5RO.js
|
|
7638
7639
|
var GLOW_VERTEX = `attribute vec4 aP;attribute vec4 aC;varying vec2 vU;varying vec4 vC;
|
|
7639
7640
|
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]);
|
|
7640
7641
|
vec3 wp=aP.xyz+(R*position.x+Up*position.y)*aP.w;vU=position.xy;vC=aC;gl_Position=projectionMatrix*viewMatrix*vec4(wp,1.);}`;
|
|
@@ -7681,10 +7682,15 @@ void main(){
|
|
|
7681
7682
|
if(n<diss*1.08-.04)discard;
|
|
7682
7683
|
float lam=max(dot(N,uLight),0.);
|
|
7683
7684
|
float band=lam>.55?1.:lam>.15?.68:.42;
|
|
7684
|
-
|
|
7685
|
+
// soot: a dark smoke still scatters some light, so it never goes flat black, and its rim takes the sky so its volume reads (only the dark puffs; the rest as the Lab)
|
|
7686
|
+
float dark=1.-smoothstep(.02,.12,dot(vC,vec3(.2126,.7152,.0722)));
|
|
7687
|
+
vec3 alb=max(vC,vec3(.055)*dark);
|
|
7688
|
+
vec3 col=alb*(vec3(.5,.56,.7)*band*1.05+vec3(.2,.19,.18)+uGround*(.4-.4*N.y));
|
|
7689
|
+
float rim=pow(1.-clamp(abs(dot(N,normalize(cameraPosition-vWP))),0.,1.),2.);
|
|
7690
|
+
col+=dark*rim*(uSky*.9+alb);
|
|
7685
7691
|
vec3 tg=uGlowPos-vWP;float dg=length(tg)+.001;
|
|
7686
7692
|
float gi=uGlowI/(1.+dg*dg*.05)*(.3+.7*max(dot(N,tg/dg),0.));
|
|
7687
|
-
col+=uGlowCol*gi*
|
|
7693
|
+
col+=uGlowCol*gi*alb*1.6;
|
|
7688
7694
|
float h=heat*(.72+.56*n)+heat*(-N.y)*.18;
|
|
7689
7695
|
if(h>.05){
|
|
7690
7696
|
float hq=floor(h*5.+.5)/5.;
|