Update README with example of normalize function

This commit is contained in:
2026-07-18 05:23:23 +00:00
committed by GitHub
parent 6dbdaf57fd
commit 5615c6d7a3
+3
View File
@@ -39,6 +39,9 @@ map = heightmap.create(150, 300, -1, 1)
-- use the custom height function and normalize with a range of 10 to 20 -- use the custom height function and normalize with a range of 10 to 20
map = heightmap.create(200, 200, f, 10, 20) map = heightmap.create(200, 200, f, 10, 20)
-- re-normalize a map in-place at any time (example range of 0 to 1)
heightmap.normalize(map, 0, 1)
``` ```
How it Works How it Works