Skip to content

Documentation / loaders / ParseHairFileOptions

Type Alias: ParseHairFileOptions

ParseHairFileOptions = object

Defined in: libs/loaders/src/hair/parser.ts:35

Options for parseHairFile.

Properties

name?

optional name?: string

Defined in: libs/loaders/src/hair/parser.ts:37

Name for the resulting strand set. Defaults to Hair.


upAxis?

optional upAxis?: StrandUpAxis

Defined in: libs/loaders/src/hair/parser.ts:48

Up axis the file's control points are expressed in.

Remarks

Defaults to z, which is what every published HAIR model uses and what the format's own tooling writes - the header records no axis, so a convention is the only thing available. Points are rotated into the engine's Y-up frame on the way out; pass y for a file that is already Y-up, which leaves them untouched.

Released under the MIT License.