Skip to content

Documentation / loaders / HairFileHeader

Type Alias: HairFileHeader

HairFileHeader = object

Defined in: libs/loaders/src/hair/types.ts:49

The fixed header of a HAIR file.

Remarks

The defaults stand in for whichever arrays the writer left out, which is how a groom with uniform thickness or a uniform segment count avoids paying for a full per-point array.

Properties

strandCount

strandCount: number

Defined in: libs/loaders/src/hair/types.ts:51

Number of hair strands, the file's hair_count.


pointCount

pointCount: number

Defined in: libs/loaders/src/hair/types.ts:53

Total control point count across all strands, the file's point_count.


arrays

arrays: number

Defined in: libs/loaders/src/hair/types.ts:55

Bit field of which optional arrays follow the header.


defaultSegments

defaultSegments: number

Defined in: libs/loaders/src/hair/types.ts:57

Segment count used for every strand when the segments array is absent.


defaultThickness

defaultThickness: number

Defined in: libs/loaders/src/hair/types.ts:59

Thickness used when the thickness array is absent.


defaultTransparency

defaultTransparency: number

Defined in: libs/loaders/src/hair/types.ts:61

Transparency used when the transparency array is absent.


defaultColor

defaultColor: [number, number, number]

Defined in: libs/loaders/src/hair/types.ts:63

Colour used when the colour array is absent, as RGB.


info

info: string

Defined in: libs/loaders/src/hair/types.ts:65

Free-form description written by the exporting tool, NUL padding removed.

Released under the MIT License.