@threenative/procedural-environment 0.0.0-stage → 0.1.3

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.
Files changed (46) hide show
  1. package/LICENSES/Apex-MIT.txt +35 -0
  2. package/LICENSES/Arbor-MIT.txt +24 -0
  3. package/LICENSES/Outcrop-MIT.txt +26 -0
  4. package/LICENSES/forest-kit-MIT.txt +26 -0
  5. package/README.md +209 -2
  6. package/dist/index.d.ts +309 -0
  7. package/dist/index.js +5409 -0
  8. package/package.json +53 -3
  9. package/scans/LeafSet012-leaves.webp +0 -0
  10. package/scans/LeafSet016-leaves.webp +0 -0
  11. package/scans/LeafSet027-leaves.webp +0 -0
  12. package/scans/bark_brown_01-color.webp +0 -0
  13. package/scans/bark_brown_01-normal.webp +0 -0
  14. package/scans/bark_brown_02-detail.webp +0 -0
  15. package/scans/bark_brown_02-normal.webp +0 -0
  16. package/scans/bark_willow_02-color.webp +0 -0
  17. package/scans/bark_willow_02-normal.webp +0 -0
  18. package/scans/chinese_hackberry_bark-color.webp +0 -0
  19. package/scans/chinese_hackberry_bark-normal.webp +0 -0
  20. package/scans/credits.json +99 -0
  21. package/scans/fern_02-frond.webp +0 -0
  22. package/scans/grass_medium_02-blade.webp +0 -0
  23. package/scans/island_tree_01-leaves.webp +0 -0
  24. package/scans/jacaranda_tree-leaves.webp +0 -0
  25. package/scans/japanese_camphor_bark-color.webp +0 -0
  26. package/scans/japanese_camphor_bark-normal.webp +0 -0
  27. package/scans/japanese_cedar_bark-color.webp +0 -0
  28. package/scans/japanese_cedar_bark-normal.webp +0 -0
  29. package/scans/jolcham_oak_bark_01-color.webp +0 -0
  30. package/scans/jolcham_oak_bark_01-normal.webp +0 -0
  31. package/scans/knotted_pine_bark-color.webp +0 -0
  32. package/scans/knotted_pine_bark-normal.webp +0 -0
  33. package/scans/metasequoia_bark-color.webp +0 -0
  34. package/scans/metasequoia_bark-normal.webp +0 -0
  35. package/scans/palm_bark-color.webp +0 -0
  36. package/scans/palm_bark-normal.webp +0 -0
  37. package/scans/pine_tree_01-sprig.webp +0 -0
  38. package/scans/rock_boulder_dry-detail.webp +0 -0
  39. package/scans/rock_boulder_dry-normal.webp +0 -0
  40. package/scans/sakura_bark-color.webp +0 -0
  41. package/scans/sakura_bark-normal.webp +0 -0
  42. package/scans/shrub_01-leaves.webp +0 -0
  43. package/scans/shrub_02-leaves.webp +0 -0
  44. package/scans/tree_bark_03-color.webp +0 -0
  45. package/scans/tree_bark_03-normal.webp +0 -0
  46. package/vendor/apex/apex-city-kit.js +7425 -0
package/package.json CHANGED
@@ -1,6 +1,56 @@
1
1
  {
2
2
  "name": "@threenative/procedural-environment",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.3",
4
+ "license": "MIT",
5
+ "description": "Optional, bake-first procedural nature GLBs for ThreeNative: trees and cover (Arbor), forest floor (forest-kit) and rocks, cliffs and mountains (Outcrop), found by biome.",
6
+ "homepage": "https://github.com/ThreeNativeHQ/threenative#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/ThreeNativeHQ/threenative-engine.git",
10
+ "directory": "packages/procedural-environment"
11
+ },
12
+ "type": "module",
13
+ "files": [
14
+ "dist",
15
+ "vendor/apex",
16
+ "README.md",
17
+ "LICENSES",
18
+ "scans/*.webp",
19
+ "scans/credits.json"
20
+ ],
21
+ "main": "./dist/index.js",
22
+ "module": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ },
29
+ "./package.json": "./package.json"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "sideEffects": false,
35
+ "dependencies": {
36
+ "@napi-rs/canvas": "1.1.1",
37
+ "sharp": "0.35.4",
38
+ "three": "0.187.0"
39
+ },
40
+ "devDependencies": {
41
+ "@tailwindcss/vite": "4.3.3",
42
+ "@types/node": "20.19.43",
43
+ "@types/three": "0.187.0",
44
+ "publint": "0.3.22",
45
+ "tailwindcss": "4.3.3",
46
+ "tsup": "8.5.1",
47
+ "typescript": "npm:@typescript/typescript6@6.0.2",
48
+ "vite": "8.2.0"
49
+ },
50
+ "scripts": {
51
+ "build": "tsup --config tsup.config.ts && publint",
52
+ "typecheck": "tsc --noEmit",
53
+ "test": "vitest run --root ../.. procedural-environment/__tests__ && publint --strict",
54
+ "library": "tsup --config tsup.config.ts && (tsup --config tsup.config.ts --watch src --watch vendor --watch scans & vite --config library/vite.config.ts)"
55
+ }
6
56
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,99 @@
1
+ {
2
+ "source": "Poly Haven",
3
+ "sourceUrl": "https://polyhaven.com",
4
+ "license": "CC0 1.0 Universal (public domain dedication)",
5
+ "licenseUrl": "https://polyhaven.com/license",
6
+ "downloaded": "2026-11-17",
7
+ "preprocessing": "scans/prepare.mjs: the upstream 1K JPG diffuse and nor_gl, 512 px wide, tiled to 1:2 for bark, WebP q85; detail scans are luminance scaled to a linear mean of 0.5",
8
+ "scans": [
9
+ "bark_brown_01",
10
+ "bark_brown_02",
11
+ "bark_willow_02",
12
+ "chinese_hackberry_bark",
13
+ "japanese_camphor_bark",
14
+ "japanese_cedar_bark",
15
+ "jolcham_oak_bark_01",
16
+ "knotted_pine_bark",
17
+ "metasequoia_bark",
18
+ "palm_bark",
19
+ "rock_boulder_dry",
20
+ "sakura_bark",
21
+ "tree_bark_03"
22
+ ],
23
+ "foliage": {
24
+ "downloaded": "2026-11-17",
25
+ "preprocessing": "scans/prepare.mjs foliage: the 1K diffuse and alpha (Poly Haven model maps) or Color and Opacity (ambientCG 1K-PNG), one alpha island per cut, turned base-down, fitted to a cell, WebP q75 with lossless alpha. ambientCG only where Poly Haven has no such leaf (oak, maple, scale-leaf conifer, dry oak).",
26
+ "sprites": {
27
+ "shrub_01-leaves": {
28
+ "provider": "Poly Haven",
29
+ "asset": "shrub_01",
30
+ "url": "https://polyhaven.com/a/shrub_01",
31
+ "license": "CC0 1.0 Universal",
32
+ "licenseUrl": "https://polyhaven.com/license"
33
+ },
34
+ "island_tree_01-leaves": {
35
+ "provider": "Poly Haven",
36
+ "asset": "island_tree_01",
37
+ "url": "https://polyhaven.com/a/island_tree_01",
38
+ "license": "CC0 1.0 Universal",
39
+ "licenseUrl": "https://polyhaven.com/license"
40
+ },
41
+ "shrub_02-leaves": {
42
+ "provider": "Poly Haven",
43
+ "asset": "shrub_02",
44
+ "url": "https://polyhaven.com/a/shrub_02",
45
+ "license": "CC0 1.0 Universal",
46
+ "licenseUrl": "https://polyhaven.com/license"
47
+ },
48
+ "jacaranda_tree-leaves": {
49
+ "provider": "Poly Haven",
50
+ "asset": "jacaranda_tree",
51
+ "url": "https://polyhaven.com/a/jacaranda_tree",
52
+ "license": "CC0 1.0 Universal",
53
+ "licenseUrl": "https://polyhaven.com/license"
54
+ },
55
+ "grass_medium_02-blade": {
56
+ "provider": "Poly Haven",
57
+ "asset": "grass_medium_02",
58
+ "url": "https://polyhaven.com/a/grass_medium_02",
59
+ "license": "CC0 1.0 Universal",
60
+ "licenseUrl": "https://polyhaven.com/license"
61
+ },
62
+ "fern_02-frond": {
63
+ "provider": "Poly Haven",
64
+ "asset": "fern_02",
65
+ "url": "https://polyhaven.com/a/fern_02",
66
+ "license": "CC0 1.0 Universal",
67
+ "licenseUrl": "https://polyhaven.com/license"
68
+ },
69
+ "pine_tree_01-sprig": {
70
+ "provider": "Poly Haven",
71
+ "asset": "pine_tree_01",
72
+ "url": "https://polyhaven.com/a/pine_tree_01",
73
+ "license": "CC0 1.0 Universal",
74
+ "licenseUrl": "https://polyhaven.com/license"
75
+ },
76
+ "LeafSet016-leaves": {
77
+ "provider": "ambientCG",
78
+ "asset": "LeafSet016",
79
+ "url": "https://ambientcg.com/a/LeafSet016",
80
+ "license": "CC0 1.0 Universal",
81
+ "licenseUrl": "https://docs.ambientcg.com/license/"
82
+ },
83
+ "LeafSet027-leaves": {
84
+ "provider": "ambientCG",
85
+ "asset": "LeafSet027",
86
+ "url": "https://ambientcg.com/a/LeafSet027",
87
+ "license": "CC0 1.0 Universal",
88
+ "licenseUrl": "https://docs.ambientcg.com/license/"
89
+ },
90
+ "LeafSet012-leaves": {
91
+ "provider": "ambientCG",
92
+ "asset": "LeafSet012",
93
+ "url": "https://ambientcg.com/a/LeafSet012",
94
+ "license": "CC0 1.0 Universal",
95
+ "licenseUrl": "https://docs.ambientcg.com/license/"
96
+ }
97
+ }
98
+ }
99
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file