FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.61k stars 340 forks source link

Terrain refactoring #446

Closed mrDIMAS closed 1 year ago

mrDIMAS commented 1 year ago

This PR refactors terrain, so it can be resizable:

1) It is now possible to change terrain size at runtime - you can add chunks from any side. This way any terrain can be extended from any side to add new parts of your game world 2) Height map size can be changed - it will be resampled to the new size. 3) Layer blending mask size can now be changed - like the height map, it will be resampled to the new size as well.