@korial29/tiny-fps 1.9.0 → 1.9.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.
|
@@ -33,6 +33,10 @@ export interface Variant {
|
|
|
33
33
|
p: WebGLProgram;
|
|
34
34
|
u: Record<string, WebGLUniformLocation>;
|
|
35
35
|
sent: Map<string, unknown[]>;
|
|
36
|
+
/** The kind it was made for (fragOf()), to make its twin with the vision's code. */
|
|
37
|
+
kind: string;
|
|
38
|
+
/** For a program with the vision's code (VISION): the one without it that it stands in for. */
|
|
39
|
+
base?: Variant;
|
|
36
40
|
}
|
|
37
41
|
export type Setter = Extract<keyof WebGL2RenderingContext, `uniform${string}`>;
|
|
38
42
|
/** The most boxes the mirrors are tested against: a reflected pixel loops over all of them. */
|
|
@@ -53,9 +57,12 @@ export declare const mirrors: (brushes?: readonly Brush[]) => boolean;
|
|
|
53
57
|
* colour's registers kept every shadow map's pixels from running as many at once); with none, all of it. Left in where it never runs,
|
|
54
58
|
* code still costs every pixel through the shader's registers: the moon 2.4 ms of GPU a frame on
|
|
55
59
|
* Highline, the ninja's 1.9 ms on three astronauts at 3 m on the moon. `rock` is the GLSL of the
|
|
56
|
-
* map's rocks under BEACH (Decor.rock: Landfall's granite, from its chunk).
|
|
60
|
+
* map's rocks under BEACH (Decor.rock: Landfall's granite, from its chunk). `sight` adds the
|
|
61
|
+
* vision's filter and its glowing prey (VISION), for a frame in a xenomorph's or the Hunter's
|
|
62
|
+
* vision: its loop and palettes were 4.6 ms a frame on Highline with none ever drawn, 1.4 on
|
|
63
|
+
* Tranquility and none on Landfall, through the registers they take from every pixel.
|
|
57
64
|
*/
|
|
58
|
-
export declare const fragOf: (def: Pick<WorldDef, "scenery" | "seam" | "relief" | "helmets"> & Partial<Pick<WorldDef, "brushes">>, kind?: string, rock?: string) => string;
|
|
65
|
+
export declare const fragOf: (def: Pick<WorldDef, "scenery" | "seam" | "relief" | "helmets"> & Partial<Pick<WorldDef, "brushes">>, kind?: string, rock?: string, sight?: boolean) => string;
|
|
59
66
|
/** A map whose ground takes footprints (createPrints): Landfall's sand, the moon's regolith. */
|
|
60
67
|
export declare const printed: (def: Pick<WorldDef, "scenery" | "relief">) => boolean;
|
|
61
68
|
/** A map with the moon's sky: its globe, stars and craters. Not the beach, whose sand is a relief too. */
|
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": "1.9.
|
|
5
|
+
"version": "1.9.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|