zwcloud / MeshTerrainEditor-issues

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

When converting a terrain to a mesh-terrain, save uv2(lighting map uv) in converted mesh. 转换模型的时候,把地形的2uv导出来 #154

Closed zwcloud closed 3 years ago

zwcloud commented 3 years ago

requested by user 美术-饭教授 36xxxx45 此建议和您遇到的问题相关吗?请描述一下。
转换模型的时候,把地形的2uv导出来,这样我设置一下光照信息就可以了,不需要再烘焙一遍了。

描述您想要的解决方法
转换模型的时候,把地形的2uv导出来

zwcloud commented 3 years ago

done at https://github.com/zwcloud/MeshTerrainEditor/commit/bdecb70658c7b9a8f804795ab9b30a1baea156fa

Actually we are not saving uv2 but assigned or cloned uv to uv2. The lightmapping data (lightmap index and offset) is kept.