zwcloud / MeshTerrainEditor-issues

Mesh Terrain Editor issue tracking and online docs
https://zwcloud.github.io/MeshTerrainEditor-issues/
5 stars 3 forks source link

Provide height blending to all shaders #205

Open zwcloud opened 3 years ago

zwcloud commented 3 years ago

Height blending shader has been implemented in MTE/Standard/4 Textures/Height Blend (Packed). We should implement height blend for all builtin shaders.

about height blend http://untitledgam.es/2017/01/height-blending-shader/ https://zhuanlan.zhihu.com/p/26383778

Optionally, we can get normal from height. https://www.leadwerks.com/community/topic/16244-calculate-normals-from-heightmap/?tab=comments#comment-106644 https://stackoverflow.com/questions/5281261/generating-a-normal-map-from-a-height-map http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.161.8979&rep=rep1&type=pdf https://www.gamedev.net/forums/topic/594781-hlsl-height-map-to-normal-algorithm/

tool to convert normalmap to heightmap: https://docs.substance3d.com/sddoc/normal-to-height-hq-159450594.html