@korial29/tiny-fps 0.162.3 → 0.162.5
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.
- package/dist/index.js +47 -26
- package/dist/types/client/hair.d.ts +5 -0
- package/dist/types/client/render.d.ts +5 -0
- package/package.json +1 -1
|
@@ -34,6 +34,11 @@ export declare const sway: (phase: number, speed: number, t: number) => Vec3;
|
|
|
34
34
|
* only swings), then the cards (makeCards()). The store keeps it (hair()), and so does the CPU.
|
|
35
35
|
*/
|
|
36
36
|
export declare const closeOf: (style: number) => Float32Array<ArrayBufferLike>;
|
|
37
|
+
/**
|
|
38
|
+
* The close hair of `style` in the store (closeOf()). Built for every style when the map loads
|
|
39
|
+
* (createRenderer()): a style takes 50 to 110 ms, a freeze the first time she came near.
|
|
40
|
+
*/
|
|
41
|
+
export declare const closeMesh: (style: number) => import("./store").Mesh;
|
|
37
42
|
/**
|
|
38
43
|
* Appends the hair `style` in `rgb` on the woman's head joint at `at` turned by `q` (see solve()),
|
|
39
44
|
* at level of detail `lod` (0 far), its loose end moved by `swing` (sway()). Close (`lod` 3) it is
|
|
@@ -52,6 +52,11 @@ export declare const POST_FRAG = "#version 300 es\nprecision highp float;uniform
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const SPEC: number[][];
|
|
54
54
|
export declare const FRAG: string;
|
|
55
|
+
/**
|
|
56
|
+
* The scene's fragment shader for a map: the moon's globe, stars, craters and orbit fade only where
|
|
57
|
+
* the map has them. Left in on another map, never run, they still cost Highline 2.4 ms of GPU a frame.
|
|
58
|
+
*/
|
|
59
|
+
export declare const fragOf: (def: Pick<WorldDef, "scenery" | "seam" | "relief">) => string;
|
|
55
60
|
/**
|
|
56
61
|
* Column-major view-projection matrix of basis(yaw, pitch, roll) at eye. t is the tangent of half the
|
|
57
62
|
* vertical field of view (70° by default), [N, F] the near and far clip distances.
|
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
|
+
"version": "0.162.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|