UnwrapOptions
Defined in: lightmap/unwrap.ts:17
Gives a mesh the second UV set a baked lightmap is read through — no two surfaces on one texel, which the UV set the art is wrapped in does not promise. An import calls it; so would a tool that unwraps geometry it generated.
Pre-1.0: the options will follow what a baker turns out to need.
Properties
Section titled “Properties”atlasSize?
Section titled “atlasSize?”
optionalatlasSize?:number
Defined in: lightmap/unwrap.ts:25
The atlas size the padding is reckoned against. Not stored anywhere: a UV set is resolution-independent, and this only fixes what “two texels” means.
maxChartAngleDegrees?
Section titled “maxChartAngleDegrees?”
optionalmaxChartAngleDegrees?:number
Defined in: lightmap/unwrap.ts:19
Widest angle two neighbouring faces may differ by and stay one chart.
paddingTexels?
Section titled “paddingTexels?”
optionalpaddingTexels?:number
Defined in: lightmap/unwrap.ts:22
Texels of empty space kept around every chart, at atlasSize. Two is the least that stops a bilinear tap reading the chart next door.