QuantizeOptions

Options for the quantize function.

Properties

cleanup: boolean
  • experimental

Whether to perform cleanup steps after completing the operation. Recommended, and enabled by default. Cleanup removes temporary resources created during the operation, but may also remove pre-existing unused or duplicate resources in the Document. Applications that require keeping these resources may need to disable cleanup, instead calling dedup and prune manually (with customized options) later in the processing pipeline.

normalizeWeights: boolean

Normalize weight attributes.

pattern: RegExp

Pattern (regex) used to filter vertex attribute semantics for quantization. Default: all.

patternTargets: RegExp

Pattern (regex) used to filter morph target semantics for quantization. Default: options.pattern.

quantizationVolume: 'mesh' | 'scene'

Bounds for quantization grid.

quantizeColor: number

Quantization bits for COLOR_* attributes.

quantizeGeneric: number

Quantization bits for application-specific (_*) attributes.

quantizeNormal: number

Quantization bits for NORMAL attributes.

quantizePosition: number

Quantization bits for POSITION attributes.

quantizeTexcoord: number

Quantization bits for TEXCOORD_* attributes.

quantizeWeight: number

Quantization bits for WEIGHT_* attributes.

Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.