Skip to content

Documentation / scene / loadZHairStrandSources

Function: loadZHairStrandSources()

loadZHairStrandSources(parsed, options?): HairStrandSource[]

Defined in: libs/scene/src/asset/loaders/zhair/zhair_loader.ts:62

Decodes a .zhair file into strand sources.

Parameters

parsed

ParsedZHair

The opened file.

options?

ZHairLoadOptions

Decimation and scaling.

Returns

HairStrandSource[]

One source per strand set, ready for HairStrandData.

Released under the MIT License.