Documentation / loaders / parseHairFile
Function: parseHairFile()
parseHairFile(
buffer,options?):HairFileModel
Defined in: libs/loaders/src/hair/parser.ts:65
Parses a HAIR file.
Parameters
buffer
ArrayBuffer
Whole .hair file contents.
options?
Naming and coordinate-system options.
Returns
The decoded model.
Remarks
Control points come back in the engine's Y-up frame, converted from the format's Z-up convention unless upAxis says otherwise. The conversion is done here rather than left to the caller because the GPU strand path consumes this output directly, without a node transform that could carry it.