Skip to content

Documentation / scene / ZHairStrandSetSource

Type Alias: ZHairStrandSetSource

ZHairStrandSetSource = object

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

One strand set on its way into a file.

Remarks

Structurally a StrandCurveSet plus the two optional .hair channels, but declared here rather than imported so this module stays free of a dependency on the loaders package.

Properties

name?

optional name?: string

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

Name for the strand set.


positions

positions: Float32Array

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

Control point positions, 3 floats per point.


pointCounts

pointCounts: Int32Array | Uint32Array

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

Control point count per strand.


widths?

optional widths?: Nullable<Float32Array>

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

Strand width as a diameter, or null when the source has none.


widthPerStrand?

optional widthPerStrand?: boolean

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

True when widths holds one value per strand.


uv?

optional uv?: Nullable<Float32Array>

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

Root UV, 2 floats each, or null when absent.


uvPerPoint?

optional uvPerPoint?: boolean

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

True when uv holds one pair per point.


colors?

optional colors?: Nullable<Float32Array>

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

Per-point colour, 3 floats each.


transparency?

optional transparency?: Nullable<Float32Array>

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

Per-point transparency.

Released under the MIT License.