Expand description
UV generation utils.
Structs§
- Surface
Data Patch - A patch for surface data that contains secondary texture coordinates and new topology for data.
It is needed for serialization: during the UV generation, generator could multiply vertices to
make seams, it adds new data to existing vertices. The problem is that we do not serialize
surface data - we store only a “link” to resource from which we’ll load surface data on
deserialization. But freshly loaded resource is not suitable for generated lightmap - in most
cases it just does not have secondary texture coordinates. So we have to patch data after loading
somehow with required data, this is where
SurfaceDataPatch
comes into play.
Functions§
- generate_
uvs - Generates UV map for the given vertices and triangles.