@korial29/tiny-fps 0.126.0 → 0.127.0

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.
@@ -54,6 +54,8 @@ export declare const CH: {
54
54
  export declare const TRAITS: number, CHANNELS: number;
55
55
  /** The middle of the right eye (x, y); the left is its mirror. */
56
56
  export declare const EYE: number[];
57
+ /** The woman's eyes are larger (the user, 2026-11-12): skin.ts sets `k` while it makes her head, and 1 back after. */
58
+ export declare const eyes: (k?: number) => void;
57
59
  /** The iris' radius, the pupil's, and how far the iris travels sideways and up or down. */
58
60
  export declare const IRIS_R: number, PUPIL_R: number, GAZE_X: number, GAZE_Y: number;
59
61
  /** The mouth: the height of the line between the lips at the middle, how it falls to the corners (per m2), and the corners. */
@@ -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.126.0",
5
+ "version": "0.127.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"