Whinarn / UnityMeshSimplifier

Mesh simplification for Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for UV-sets in 3D and 4D

Whinarn opened this issue · comments

Add support for UV-sets in 3D and 4D.
Currently only 2D is supported.

Most work was finished in e8bc82a

The only remaining problem is within the Initialize method in MeshSimplifier.cs
How can we detect if a UV channel is 2D, 3D or 4D?
Do we always have to assume 4D in order to support all of them?
If we set 4D UVs for a channel on a mesh, will Unity automatically detect that only 2 are being used, or will Unity always store and use 4D?

This work has now been merged into master.