@korial29/tiny-fps 0.125.0 → 0.126.1

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.
@@ -21,7 +21,8 @@ export declare const strewn: (def: WorldDef) => number[][];
21
21
  * The ranges on the horizon, all round, past the crater wall: radius from the middle of the play
22
22
  * area, height of its highest peak, rows of points from foot to crest, its grey in the sun and in
23
23
  * the shade (the nearer darker and sharper, the farther paler and flatter, as the eye expects with
24
- * no air), seed.
24
+ * no air), seed. Low and dark (the user, 2026-11-12: more discreet): about half their first height
25
+ * and grey.
25
26
  * Inside the stars' dome and, from the far side of the bound, the far plane.
26
27
  */
27
28
  export declare const RANGES: number[][];
@@ -38,6 +38,7 @@ export declare const FOV: number;
38
38
  export declare const ROVER_NEAR: number, ROVER_MID: number;
39
39
  /** A ship's, 14 m long: its cockpit and its struts within 45 m, its plain shape past 160 m. */
40
40
  export declare const SHIP_NEAR: number, SHIP_MID: number;
41
+ export declare const POST_FRAG = "#version 300 es\nprecision highp float;uniform sampler2D S[4];uniform vec4 Y;uniform float L;in vec2 U;out vec4 o;\nvec3 b(vec2 x){vec3 c=texture(S[0],x).rgb;return c*smoothstep(.9,2.,max(c.r,max(c.g,c.b)));}\n#define T(k)texture(S[0],U+Y.xy*(k)).rgb\nvoid main(){\nvec3 c;\nif(Y.z<1.)c=(b(U+Y.xy)+b(U-Y.xy)+b(U+Y.xy*vec2(1,-1))+b(U-Y.xy*vec2(1,-1)))/4.;\nelse if(Y.z<2.)c=T(0.)*.227+(T(1.3846)+T(-1.3846))*.3162+(T(3.2308)+T(-3.2308))*.0703;\nelse{\nc=texture(S[0],U).rgb+texture(S[1],U).rgb*1.3+texture(S[2],U).rgb*1.+texture(S[3],U).rgb*.7;\nvec2 q=U-.5;\nc=min(c,.6)+.4*(1.-exp(-max(c-.6,0.)/.4));\nfloat a=atan(q.y,q.x)*24.,h=fract(sin(floor(a)*12.9898)*43758.5453);\nc+=L*step(.85-.5*L,h)*sin(fract(a)*3.1416)*smoothstep(.2,.6,length(q))*fract(length(q)*3.-Y.w*.002+h*9.)*.22;\nc*=1.-(.7+.3*L)*dot(q,q);\nc=pow(max(c*vec3(.97,1.,1.03),0.),vec3(.92))+(fract(sin(dot(gl_FragCoord.xy+Y.w,vec2(12.9898,78.233)))*43758.5453)-.5)*.03;}\no=vec4(c,1);}";
41
42
  /**
42
43
  * Blinn-Phong strength and exponent: a row per TEX id in order (brick, tile, lava, stone, metal, wood,
43
44
  * moss, grate, concrete, glass, steel, paint, rock), then the flat bodies, then polished metal (SHINE),
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.125.0",
5
+ "version": "0.126.1",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"