TokisanGames / Terrain3D

A high performance, editable terrain system for Godot 4.
MIT License
2.26k stars 134 forks source link

Terrain Shader updates #516

Open Xtarsia opened 1 month ago

Xtarsia commented 1 month ago

Admin edit: Fixes #65

overall should give a decent FPS boost across the board. everything works across compat/mobile/forward+

no projection: image

projection (0.5 threshold): image

texture LOD bias 0.8, depth blur 8.0: image

a note on painted UV rotations and projected UVs - they work sort of, but at high surface slopes, the control map is still very skewed, as seen here: image

It is possible to paint uv rotation, but it requires care. The dynamic mode is relative to the xz plane, not the projected plane so it is un-reliable. with some close attention, good results can be achieve if really specific things are desired on steep faces, tho issues are unavoidable at the crossover between different projections: image

EDIT: fixing debug views to work with this, included a small upgrade to the control map texture view: image