Documentation / scene / mergeHairStrandSources
Function: mergeHairStrandSources()
mergeHairStrandSources(
sources):HairStrandSource
Defined in: libs/scene/src/asset/loaders/zhair/zhair_loader.ts:91
Merges strand sets into one source.
Parameters
sources
Sources to merge.
Returns
A single source, or null when there is nothing to merge.
Remarks
A .zhair file holds one set per source curve object, and an XGen archive routinely exports several spline descriptions for a single hairstyle. They share a material and differ only in which patch of scalp they grew from, so merging lets the whole head draw in one call.