# Textures

Photoscanned texture sets from [Poly Haven](https://polyhaven.com), all under
[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) (public domain: no attribution
required; credited here anyway). Downloaded at 1K as JPG, unmodified, and embedded in the binary.
`cave::stone_textures` loads them into three array textures (albedo, normal, ARM), one layer per
set, with mipmaps built at startup.

Each set has three maps: `_diff` (albedo, sRGB), `_nor_gl` (normal map, OpenGL convention: green
points to the top of the image) and `_arm` (linear: R ambient occlusion, G roughness, B metalness).

| Layer | Files | Poly Haven asset | Size on the ground | Authors | Used for |
|---|---|---|---|---|---|
| 0 ground | `rock_boulder_cracked_{diff,nor_gl,arm}_1k.jpg` | [Rock Boulder Cracked](https://polyhaven.com/a/rock_boulder_cracked) | 1.39 m | Dimitrios Savva, Dario Barresi | the Cinder floor's cracked rock |
| 1 dust | `rock_ground_{diff,nor_gl,arm}_1k.jpg` | [Rock Ground](https://polyhaven.com/a/rock_ground) | 1.5 m | Rob Tuytel | dust and gravel blended over it |
| 2 rock | `cliff_side_{diff,nor_gl,arm}_1k.jpg` | [Cliff Side](https://polyhaven.com/a/cliff_side) | 1.83 m | James Ray Cock, Dario Barresi, Jenelle van Heerden | the walls and rock props (triplanar) |

Licence: CC0 1.0 Universal, https://polyhaven.com/license.
