Method GenerateAtlas
GenerateAtlas(IEnumerable<Geometry>, uint, bool, bool)
Generates a Texture2D atlas containing the textures and gradients for the vector geometry.
Declaration
public static VectorUtils.TextureAtlas GenerateAtlas(IEnumerable<VectorUtils.Geometry> geoms, uint rasterSize, bool generatePOTTexture = true, bool encodeSettings = true)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<VectorUtils.Geometry> | geoms | The list of Geometry objects, probably created with TessellateNodeHierarchy |
uint | rasterSize | Maximum size of the generated texture |
bool | generatePOTTexture | Resize the texture to the next power-of-two |
bool | encodeSettings | Encode the gradient settings inside the texture |
Returns
Type | Description |
---|---|
VectorUtils.TextureAtlas | The generated texture atlas |