Navigation
API > API/Developer > API/Developer/TextureCompressor > API/Developer/TextureCompressor/ITextureCompressorModule
References
| Module | TextureCompressor |
| Header | /Engine/Source/Developer/TextureCompressor/Public/TextureCompressorModule.h |
| Include | #include "TextureCompressorModule.h" |
| Source | /Engine/Source/Developer/TextureCompressor/Private/TextureCompressorModule.cpp |
static bool DetermineAlphaChannelTransparency
(
const FTextureBuildSettings & InBuildSettings,
const FLinearColor & InChannelMin,
const FLinearColor & InChannelMax,
bool & bOutAlphaIsTransparent
)
Remarks
Given the channel min/max for the top mip of a texture's source, determine whether there will be any transparency after image processing occurs, and thus the texture will need to be BC3 for the purposes of AutoDXT format selection. Whether the alpha channel can be determined. There are plenty of edge cases where it's not feasible to determine the result prior to full processing, however these are rare in practice.
Parameters
| Name | Description |
|---|---|
| bOutAlphaIsTransparent | This is undetermined if the return is false!. If true, we expect the image after processing to require an alpha channel. |