Skip to content

Documentation / scene / readZHairFloats

Function: readZHairFloats()

readZHairFloats(parsed, ref): Float32Array<ArrayBufferLike>

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:347

Copies a float32 array out of the payload.

Parameters

parsed

ParsedZHair

The opened file.

ref

ZHairBufferRef

Where the array sits, from the manifest.

Returns

Float32Array<ArrayBufferLike>

A copy of the array, or null when ref is absent.

Released under the MIT License.