@korial29/tiny-fps 0.133.1 → 0.133.2

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,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.133.2",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"