Commit Graph

8 Commits

Author SHA1 Message Date
Gael-de-Sailly 1adb4fbece Added an offset of 0.5 on terrain elevation
This prevents rounding errors and improves interpolation on nearly flat areas
2020-04-13 12:27:24 +02:00
Gael-de-Sailly 13d3e70b66 Implemented variable river width.
Also changed the river data exported by terrain_rivers.py. They will not be compatible with what's generated by older versions.
2020-04-13 12:15:10 +02:00
Gael-de-Sailly 4b63ed371e Add more information in the polygon table 2020-04-13 10:31:38 +02:00
Gael-de-Sailly eba90803fe Removed useless debug print 2020-04-13 10:01:23 +02:00
Gael-de-Sailly 34de4269ee Add directly a reference to the polygon table in the polygon list, instead of adding an index 2020-04-13 09:54:04 +02:00
Gael-de-Sailly 56cebecb13 More robust and faster code for grid twisting on the Lua side.
At chunkgen init, build a list of the polygons instead of calculating them for every node.
2020-04-13 09:27:41 +02:00
Gael-de-Sailly b7c6f71635 Implemented grid twisting. Still many possible bugs, potentially clumsy implementation, but it seems to work. 2020-04-13 09:27:41 +02:00
Gael-de-Sailly 0bf351b2f6 Initial commit: working example using a basis of Simplex noise and implementing river flowing, lakes, and erosion 2020-04-09 21:15:41 +02:00