bevy_heightmap
Load height map PNGs as meshes in bevy.
| Height map | Generated |
|---|---|
![]() |
![]() |
Usage
Create a height map from a value function:
use *;
use *;
let heightmap = ValueFunctionHeightMap;
let mesh: Mesh = heightmap.build_mesh;
assert_eq!;
Load a height map as a mesh from an image (requires .hmp.png extension):
use *;
use *;
Examples
cargo run --example image
Bevy support table
| bevy | bevy_heightmap |
|---|---|
| 0.17 | 0.7.0 |
| 0.16 | 0.4.1-0.6.1 |
| 0.15 | 0.3.0 |
| 0.14 | 0.2.0 |
| 0.13 | 0.1.0 |

