diff options
author | Dave Parks <davep@lindenlab.com> | 2022-12-16 12:22:23 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-12-16 12:22:23 -0600 |
commit | dbc641ce52264d0b5a8e584a726f2df457f26f79 (patch) | |
tree | 0a048d600ec9c98fea45ad9bcc02cc2d2b5eee9e /indra/llimage/llimage.h | |
parent | d27d23ab269f6d22483c4b4dc1db1664cf3e441e (diff) |
SL-18861 Optimize away alpha channel on GLTF material imports.
Diffstat (limited to 'indra/llimage/llimage.h')
-rw-r--r-- | indra/llimage/llimage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llimage/llimage.h b/indra/llimage/llimage.h index 9e50fd502b..8f9e1b3c54 100644 --- a/indra/llimage/llimage.h +++ b/indra/llimage/llimage.h @@ -208,6 +208,10 @@ public: void clear(U8 r=0, U8 g=0, U8 b=0, U8 a=255); void verticalFlip(); + + // if the alpha channel is all 100% opaque, delete it + // returns true if alpha channel was deleted + bool optimizeAwayAlpha(); static S32 biasedDimToPowerOfTwo(S32 curr_dim, S32 max_dim = MAX_IMAGE_SIZE); static S32 expandDimToPowerOfTwo(S32 curr_dim, S32 max_dim = MAX_IMAGE_SIZE); |