# Vegetation assets: sources and licences

## Poly Haven (CC0 1.0)

All Poly Haven assets are CC0 (public domain): https://polyhaven.com/license. Credit is not required but given here. Each was downloaded on 2026-11-16 as the **1K glTF** from `api.polyhaven.com/files/<id>` (`dl.polyhaven.org`), plus the 1K `Alpha` (and nettle `dry_diff`) maps from the same listing.

| file(s) | asset | authors | what we did |
|---|---|---|---|
| `polyhaven/shrub_02.glb`, `shrub_02_diff_1k.jpg`, `shrub_02_alpha_1k.jpg` | [Shrub 02](https://polyhaven.com/a/shrub_02) | Rico Cilliers | 4 variants recentred at the origin; meshopt simplify to 30 % with locked borders, so the leaf cards survive (27.3k → 8.2k tris); normal/ARM maps dropped (Lambert); JPEG re-encoded q78 at 1024² |
| `polyhaven/nettle_plant.glb`, `nettle_plant_diff_1k.jpg`, `nettle_plant_dry_diff_1k.jpg`, `nettle_plant_alpha_1k.jpg` | [Nettle Plant](https://polyhaven.com/a/nettle_plant) | Rob Tuytel (photography), Rico Cilliers (modelling) | 6 variants recentred; simplify to 30 % with locked borders (31.3k → 9.4k tris); the dry diffuse is used in October/November |
| `polyhaven/dry_branches_medium_01.glb`, `dry_branches_medium_01_diff_1k.jpg` | [Dry Branches Medium 01](https://polyhaven.com/a/dry_branches_medium_01) | Rico Cilliers | 3 variants recentred; simplify to 15 % (16.8k → 4.1k tris) |

The conversion script is `js/vendor-eztree-src/undergrowth.mjs` (gltf-transform 4.1.1 + meshoptimizer).

## ez-tree textures (`eztree/`)

From the `@dgreenheck/ez-tree` 1.1.0 npm package (`src/lib/assets/`), MIT licence, Copyright (c) 2024 Daniel Greenheck (full text in `js/vendor-eztree.js` and `eztree/LICENSE`). Downscaled to 512².

| file | upstream source named in ez-tree's `assets/bark/README.md` |
|---|---|
| `eztree/bark/oak_color.jpg` | Poly Haven [bark_brown_02](https://polyhaven.com/a/bark_brown_02), CC0 |
| `eztree/bark/willow_color.jpg` | Poly Haven [bark_willow_02](https://polyhaven.com/a/bark_willow_02), CC0 |
| `eztree/leaves/ash_color.png`, `aspen_color.png`, `oak_color.png` | leaf cluster cards shipped with ez-tree (MIT) |

## Code

- `js/vendor-eztree.js`: bundle of `@dgreenheck/ez-tree` 1.1.0 `src/lib` (MIT, Daniel Greenheck) and the math classes of three.js 0.170 (MIT, three.js authors). Both licence notices are in the file header.
