fastnoiselite-builder 0.2.0 → 0.4.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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Prefix all user-defined function names in WGSL code to avoid collisions
3
+ * when multiple noise builders are used in the same shader.
4
+ */
5
+ export declare function prefixWGSLFunctions(wgsl: string, prefix: string): string;
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "fastnoiselite-builder",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "typesVersions": {
9
+ "*": {
10
+ "tsl": [
11
+ "./dist/tsl/index.d.ts"
12
+ ]
13
+ }
14
+ },
8
15
  "exports": {
9
16
  ".": {
10
17
  "import": "./dist/index.js",