Skip to content

Commit

Permalink
docs(functions): Clarify docs for 'slots' argument to textureCompress
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Oct 23, 2023
1 parent 22d81cc commit e4f09f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/functions/src/texture-compress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ export interface TextureCompressOptions {
resizeFilter?: TextureResizeFilter;
/** Pattern identifying textures to compress, matched to name or URI. */
pattern?: RegExp | null;
/** Pattern matching the format(s) to be compressed or converted. */
/**
* Pattern matching the format(s) to be compressed or converted. Some examples
* of formats include "jpeg" and "png".
*/
formats?: RegExp | null;
/** Pattern matching the material texture slot(s) to be compressed or converted. */
/**
* Pattern matching the material texture slot(s) to be compressed or converted.
* Some examples of slot names include "baseColorTexture", "occlusionTexture",
* "metallicRoughnessTexture", and "normalTexture".
*/
slots?: RegExp | null;

/** Quality, 1-100. Default: auto. */
Expand Down

0 comments on commit e4f09f6

Please sign in to comment.