Flokey82 / genworldvoronoi

Generates a planet with basic climate simulation, city placement, Wavefront OBJ/SVG/PNG export, leaflet server, etc. WIP!
Apache License 2.0
4 stars 1 forks source link

Visualization: Improve water / ocean tile rendering #12

Open Flokey82 opened 1 year ago

Flokey82 commented 1 year ago

Right now we divide every triangle into 3 equally sized shards that are shaded based on the elevation and biome of the region which form the 3 corners of the triangle.

This can mean that the water portion extends to a location on a triangle that is, de-facto, above sea level, which causes issues when mapping the rendered tile on the 3d mesh (heightmap).

We need to improve the way the triangle is divided and rendered to ensure that we only render ocean up to sea level and not any further.

Flokey82 commented 1 year ago

Rendering is now improved for rendered tiles when shadows are enabled.

TODO: