@korial29/tiny-fps 0.162.5 → 0.162.6

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -109,7 +109,7 @@ float h=d.y,k=max(dot(d,O),0.);
109
109
  vec3 c=mix(H[4],H[3],pow(clamp(h,0.,1.),.5));
110
110
  c=mix(c,H[4]*1.08,exp(-abs(h)*7.));
111
111
  #ifdef MOON
112
- c+=Sn*sk(d,px);
112
+ if(px>0.)c+=Sn*sk(d,px);
113
113
  #endif
114
114
  return c+X*((.1+.9*clamp(H[4].g*1.2,0.,1.))*(.2*pow(k,24.)+.05*pow(k,4.))+2.*smoothstep(.9993,.9997,k));}
115
115
  float vh(vec2 q){return fract(sin(dot(q,vec2(127.1,311.7)))*43758.5453);}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@korial29/tiny-fps",
3
3
  "description": "Tiny multiplayer first-person rooftop game for the browser: raw WebGL, zero runtime dependencies, WebSocket or same-browser multi-tab play.",
4
4
  "license": "Apache-2.0",
5
- "version": "0.162.5",
5
+ "version": "0.162.6",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"