|
Lagrange
|
Packing options. More...
#include <lagrange/xatlas/Options.h>
Public Attributes | |
| uint32_t | max_chart_size = 0 |
| Maximum chart size, in pixels. | |
| uint32_t | padding = 0 |
| Empty pixels of padding to leave around each chart. Useful for mip-map filtering. | |
| float | texels_per_unit = 0.f |
| Texel-to-world-unit ratio. | |
| uint32_t | resolution = 0 |
| Atlas tile resolution, in pixels (square). | |
| bool | bilinear = true |
| If true, leave a 1-pixel safety margin so bilinear filtering doesn't sample neighbouring charts. | |
| bool | block_align = false |
| If true, align charts to 4-pixel blocks (useful for compressed texture formats like BCn). | |
| bool | brute_force = false |
| If true, use brute-force search to find optimal chart placement (significantly slower). | |
| bool | rotate_charts_to_axis = true |
| If true, rotate each chart so that its longest principal axis aligns with the U or V axis. | |
| bool | rotate_charts = true |
| If true, allow xatlas to rotate charts during packing (in addition to axis alignment). | |
Packing options.
Maps 1-to-1 onto xatlas::PackOptions.
| uint32_t max_chart_size = 0 |
Maximum chart size, in pixels.
Charts larger than this are scaled down. 0 (default) means no limit.
| float texels_per_unit = 0.f |
Texel-to-world-unit ratio.
If 0, xatlas estimates a value such that the entire atlas fits within resolution x resolution (or a single tile of any size if resolution is also 0).
| uint32_t resolution = 0 |
Atlas tile resolution, in pixels (square).
0 (default) means a single atlas sized by texels_per_unit. If both are non-zero, charts that don't fit produce additional tiles.