@korial29/tiny-fps 0.133.1 → 0.134.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.
@@ -29,6 +29,10 @@ interface Region {
29
29
  alone?: boolean;
30
30
  /** How far it stands off the skin, when not OFF. */
31
31
  off?: number;
32
+ /** On the trunk, its angles are measured round the leg of that side, as a leg's plate's. */
33
+ legs?: boolean;
34
+ /** No plate: the suit's dark ribbed cloth, a hair off the skin, with no wall (the gusset). */
35
+ thin?: boolean;
32
36
  }
33
37
  /**
34
38
  * The chest plate's pecs (the user, 2026-11-10: fuller toward the bottom, then the round part too
@@ -73,6 +77,18 @@ export declare const BRIEFS: {
73
77
  side: number;
74
78
  at: number[];
75
79
  };
80
+ /**
81
+ * The thigh plates' top (the user, 2026-11-13, on a picture of a trooper's hips: a slant from the
82
+ * hip down to the inside of the thigh, a crescent of dark ribbed suit between it and the briefs):
83
+ * a line of its own by the angle round the trunk, on the thighs and up the hips' sides alike, so one
84
+ * line across the border too. Lowest at the inside of the thigh, `front` and `back`, under the
85
+ * crotch; SIDE_GAP under the briefs at the hip; between the angles `at`.
86
+ */
87
+ export declare const THIGH: {
88
+ front: number;
89
+ back: number;
90
+ at: number[];
91
+ };
76
92
  /**
77
93
  * The chest plate's outer corners go round under the armpits (the user, 2026-11-12: a triangle came
78
94
  * through the plate under the armpit): the shoulder's skin stands out of the trunk's at the split
@@ -27,7 +27,7 @@ export declare const pack: (out: number[], at: Vec3, q: Quat, rgb: number[], lod
27
27
  * the pack's port from above, ribbed close up. None far.
28
28
  */
29
29
  export declare const hose: (out: number[], head: Vec3, hq: Quat, chest: Vec3, cq: Quat, lod: number) => void;
30
- /** The woman's cup, scaled about its joint: flatter. */
30
+ /** The woman's panel, scaled about its joint: smaller, as far out (her briefs are where his are). */
31
31
  export declare const CUP_F: Vec3;
32
- /** Appends the crotch cup at level of detail `lod` on the pelvis joint at `at` turned by `q`, in `plate` (white when absent). */
33
- export declare const crotch: (out: number[], at: Vec3, q: Quat, lod: number, plate?: number[], scale?: number | Vec3) => void;
32
+ /** Appends the crotch panel on the pelvis joint at `at` turned by `q`, in `plate` (white when absent). */
33
+ export declare const crotch: (out: number[], at: Vec3, q: Quat, plate?: number[], scale?: number | Vec3) => void;
@@ -29,8 +29,12 @@ export declare const HAZE = 0.6;
29
29
  */
30
30
  export declare const FOG_LAYER = 0.02;
31
31
  export declare const FOG_RISE = 0.05;
32
+ /** The bound on the fog's climb (FOG_RISE times the height between the eye and the point): a kilometre up or down, and exp() of it stays finite in float32. */
33
+ export declare const FOG_CLIMB = 50;
32
34
  /** The far clip, metres: the moon's stars (moonscape.ts SKY) seen from the far end of its crater, the widest view of any map. */
33
35
  export declare const FAR = 1200;
36
+ /** The bound on the distance the fog integrates over: nothing drawn is further, and a point extrapolated off a thin face can be kilometres off. */
37
+ export declare const FOG_FAR: number;
34
38
  /** The vertical field of view at rest, degrees, and the tangent of its half. */
35
39
  export declare const FOV_DEG = 70;
36
40
  export declare const FOV: number;
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.133.1",
5
+ "version": "0.134.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"