PaletteOptions

Properties

blockSize: number

Size (in pixels) of a single block within each palette texture. Default: 4.

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.

keepAttributes: boolean

Whether to keep unused vertex attributes, such as UVs without an assigned texture. If kept, unused UV coordinates may prevent palette texture creation. Default: false.

min: number

Minimum number of blocks in the palette texture. If fewer unique material values are found, no palettes will be generated. Default: 5.

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.