@thi.ng/shader-ast-stdlib 0.11.4 → 0.11.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-03-11T12:13:49Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -503,4 +503,4 @@ If this project contributes to an academic publication, please cite it as:
503
503
 
504
504
  ## License
505
505
 
506
- © 2019 - 2021 Karsten Schmidt // Apache Software License 2.0
506
+ © 2019 - 2022 Karsten Schmidt // Apache Software License 2.0
@@ -4,7 +4,7 @@
4
4
  * Reference:
5
5
  * https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/
6
6
  *
7
- * @param col
7
+ * @param col -
8
8
  */
9
9
  export declare const ACESFilm: import("@thi.ng/shader-ast").TaggedFn1<"vec3", "vec3">;
10
10
  //# sourceMappingURL=aces-film.d.ts.map
@@ -7,7 +7,7 @@ import { clamp01 } from "../math/clamp.js";
7
7
  * Reference:
8
8
  * https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/
9
9
  *
10
- * @param col
10
+ * @param col -
11
11
  */
12
12
  export const ACESFilm = defn("vec3", "ACESFilm", ["vec3"], (col) => [
13
13
  ret(clamp01(div(mul(col, add(mul(col, 2.51), 0.03)), add(mul(col, add(mul(col, 2.43), 0.59)), 0.14)))),
package/color/levels.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare const midLevelGamma: import("@thi.ng/shader-ast").TaggedFn1<"floa
12
12
  * potentially varying settings per channel). To be used with
13
13
  * {@link levelAdjustGammaRGB}.
14
14
  *
15
- * @param mid
15
+ * @param mid -
16
16
  */
17
17
  export declare const midLevelGammaRGB: (mid: Vec3Term) => import("@thi.ng/shader-ast").Lit<"vec3">;
18
18
  /**
@@ -53,10 +53,10 @@ export declare const levelAdjustMid: (x: FloatTerm, mid: FloatTerm, input: Vec2T
53
53
  * @remarks
54
54
  * Also see {@link levelAdjustGammaRGB}, {@link midLevelGammaRGB}.
55
55
  *
56
- * @param x
57
- * @param mid
58
- * @param input
59
- * @param output
56
+ * @param x -
57
+ * @param mid -
58
+ * @param input -
59
+ * @param output -
60
60
  */
61
61
  export declare const levelAdjustMidRGB: (x: Vec3Term, mid: Vec3Term, input: Mat3Term, output: Mat3Term) => import("@thi.ng/shader-ast").FnCall<"vec3">;
62
62
  //# sourceMappingURL=levels.d.ts.map
package/color/levels.js CHANGED
@@ -21,7 +21,7 @@ export const midLevelGamma = defn("float", "midLevelGamma", ["float"], (mid) =>
21
21
  * potentially varying settings per channel). To be used with
22
22
  * {@link levelAdjustGammaRGB}.
23
23
  *
24
- * @param mid
24
+ * @param mid -
25
25
  */
26
26
  export const midLevelGammaRGB = (mid) => vec3(midLevelGamma($x(mid)), midLevelGamma($y(mid)), midLevelGamma($z(mid)));
27
27
  /**
@@ -66,9 +66,9 @@ export const levelAdjustMid = (x, mid, input, output) => levelAdjustGamma(x, mid
66
66
  * @remarks
67
67
  * Also see {@link levelAdjustGammaRGB}, {@link midLevelGammaRGB}.
68
68
  *
69
- * @param x
70
- * @param mid
71
- * @param input
72
- * @param output
69
+ * @param x -
70
+ * @param mid -
71
+ * @param input -
72
+ * @param output -
73
73
  */
74
74
  export const levelAdjustMidRGB = (x, mid, input, output) => levelAdjustGammaRGB(x, midLevelGammaRGB(mid), input, output);
package/math/fit.d.ts CHANGED
@@ -12,21 +12,21 @@ export declare const fitNorm1: import("@thi.ng/shader-ast").TaggedFn3<"float", "
12
12
  * Fits value `x` from closed interval [a,b] to closed interval [c,d]. No
13
13
  * clamping performed.
14
14
  *
15
- * @param x
16
- * @param a
17
- * @param b
18
- * @param c
19
- * @param d
15
+ * @param x -
16
+ * @param a -
17
+ * @param b -
18
+ * @param c -
19
+ * @param d -
20
20
  */
21
21
  export declare const fit: <T extends PrimTerm>(x: T, a: T, b: T, c: T, d: T) => Term<TermType<T>>;
22
22
  /**
23
23
  * Same as {@link fit}, but first clamps `x` to closed [a,b] interval.
24
24
  *
25
- * @param x
26
- * @param a
27
- * @param b
28
- * @param c
29
- * @param d
25
+ * @param x -
26
+ * @param a -
27
+ * @param b -
28
+ * @param c -
29
+ * @param d -
30
30
  */
31
31
  export declare const fitClamped: <T extends PrimTerm>(x: T, a: T, b: T, c: T, d: T) => Term<TermType<T>>;
32
32
  /**
package/math/fit.js CHANGED
@@ -17,21 +17,21 @@ export const fitNorm1 = defn("float", "fitNorm1", ["float", "float", "float"], (
17
17
  * Fits value `x` from closed interval [a,b] to closed interval [c,d]. No
18
18
  * clamping performed.
19
19
  *
20
- * @param x
21
- * @param a
22
- * @param b
23
- * @param c
24
- * @param d
20
+ * @param x -
21
+ * @param a -
22
+ * @param b -
23
+ * @param c -
24
+ * @param d -
25
25
  */
26
26
  export const fit = (x, a, b, c, d) => mix(c, d, div(sub(x, a), sub(b, a)));
27
27
  /**
28
28
  * Same as {@link fit}, but first clamps `x` to closed [a,b] interval.
29
29
  *
30
- * @param x
31
- * @param a
32
- * @param b
33
- * @param c
34
- * @param d
30
+ * @param x -
31
+ * @param a -
32
+ * @param b -
33
+ * @param c -
34
+ * @param d -
35
35
  */
36
36
  export const fitClamped = (x, a, b, c, d) => mix(c, d, clamp01(div(sub(x, a), sub(b, a))));
37
37
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/shader-ast-stdlib",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,16 +34,16 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.3",
38
- "@thi.ng/shader-ast": "^0.12.4"
37
+ "@thi.ng/api": "^8.3.4",
38
+ "@thi.ng/shader-ast": "^0.12.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.19.2",
42
- "@thi.ng/testament": "^0.2.3",
41
+ "@microsoft/api-extractor": "^7.19.4",
42
+ "@thi.ng/testament": "^0.2.4",
43
43
  "rimraf": "^3.0.2",
44
44
  "tools": "^0.0.1",
45
- "typedoc": "^0.22.10",
46
- "typescript": "^4.5.3"
45
+ "typedoc": "^0.22.13",
46
+ "typescript": "^4.6.2"
47
47
  },
48
48
  "keywords": [
49
49
  "ast",
@@ -312,5 +312,5 @@
312
312
  ],
313
313
  "year": 2019
314
314
  },
315
- "gitHead": "1ba92c6b9509e74e509b4c0b875fc380a97bbbc1\n"
315
+ "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
316
316
  }
package/sdf/polyhedra.js CHANGED
@@ -36,8 +36,8 @@ const GDF = [
36
36
  *
37
37
  * Also based on: HG_SDF (Mercury Demogroup)
38
38
  *
39
- * @param id
40
- * @param vecs
39
+ * @param id -
40
+ * @param vecs -
41
41
  */
42
42
  const defGDF = (id, vecs) => [
43
43
  defn("float", id, ["vec3", "float"], (p, r) => [
@@ -9,8 +9,8 @@ export declare const sdfSmoothIntersect: import("@thi.ng/shader-ast").TaggedFn3<
9
9
  * Variadic compiletime macro for {@link sdfSmoothIntersect}. Takes smooth factor
10
10
  * `k`, followed by any number (at least 1 required) of SDF terms.
11
11
  *
12
- * @param k
13
- * @param terms
12
+ * @param k -
13
+ * @param terms -
14
14
  */
15
15
  export declare const sdfSmoothIntersectAll: (k: FloatTerm, ...terms: FloatTerm[]) => FloatTerm;
16
16
  //# sourceMappingURL=smooth-isec.d.ts.map
@@ -21,7 +21,7 @@ export const sdfSmoothIntersect = defn("float", "sdOpSmoothIntersect", ["float",
21
21
  * Variadic compiletime macro for {@link sdfSmoothIntersect}. Takes smooth factor
22
22
  * `k`, followed by any number (at least 1 required) of SDF terms.
23
23
  *
24
- * @param k
25
- * @param terms
24
+ * @param k -
25
+ * @param terms -
26
26
  */
27
27
  export const sdfSmoothIntersectAll = (k, ...terms) => terms.reduce((acc, x) => sdfSmoothIntersect(acc, x, k));
@@ -9,8 +9,8 @@ export declare const sdfSmoothSubtract: import("@thi.ng/shader-ast").TaggedFn3<"
9
9
  * Variadic compiletime macro for {@link sdfSmoothSubtract}. Takes smooth factor
10
10
  * `k`, followed by any number (at least 1 required) of SDF terms.
11
11
  *
12
- * @param k
13
- * @param terms
12
+ * @param k -
13
+ * @param terms -
14
14
  */
15
15
  export declare const sdfSmoothSubtractAll: (k: FloatTerm, ...terms: FloatTerm[]) => FloatTerm;
16
16
  //# sourceMappingURL=smooth-sub.d.ts.map
package/sdf/smooth-sub.js CHANGED
@@ -21,7 +21,7 @@ export const sdfSmoothSubtract = defn("float", "sdOpSmoothSubtract", ["float", "
21
21
  * Variadic compiletime macro for {@link sdfSmoothSubtract}. Takes smooth factor
22
22
  * `k`, followed by any number (at least 1 required) of SDF terms.
23
23
  *
24
- * @param k
25
- * @param terms
24
+ * @param k -
25
+ * @param terms -
26
26
  */
27
27
  export const sdfSmoothSubtractAll = (k, ...terms) => terms.reduce((acc, x) => sdfSmoothSubtract(acc, x, k));
@@ -9,8 +9,8 @@ export declare const sdfSmoothUnion: import("@thi.ng/shader-ast").TaggedFn3<"flo
9
9
  * Variadic compiletime macro for {@link sdfSmoothUnion}. Takes smooth factor
10
10
  * `k`, followed by any number (at least 1 required) of SDF terms.
11
11
  *
12
- * @param k
13
- * @param terms
12
+ * @param k -
13
+ * @param terms -
14
14
  */
15
15
  export declare const sdfSmoothUnionAll: (k: FloatTerm, ...terms: FloatTerm[]) => FloatTerm;
16
16
  //# sourceMappingURL=smooth-union.d.ts.map
@@ -21,7 +21,7 @@ export const sdfSmoothUnion = defn("float", "sdOpSmoothUnion", ["float", "float"
21
21
  * Variadic compiletime macro for {@link sdfSmoothUnion}. Takes smooth factor
22
22
  * `k`, followed by any number (at least 1 required) of SDF terms.
23
23
  *
24
- * @param k
25
- * @param terms
24
+ * @param k -
25
+ * @param terms -
26
26
  */
27
27
  export const sdfSmoothUnionAll = (k, ...terms) => terms.reduce((acc, x) => sdfSmoothUnion(acc, x, k));