mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
ASTC normal map support
- Update astc to 57af6af from https://github.com/andrewwillmott/astc-encoder - Expand bimg::Quality to include source-as-normal-map modes, intended as a hint to the encoder. - Hook this up for ASTC, and in texturec
This commit is contained in:
@@ -450,6 +450,7 @@ bimg::ImageContainer* convert(bx::AllocatorI* _allocator, const void* _inputData
|
||||
, rgba
|
||||
);
|
||||
|
||||
bimg::Quality::Enum nmapQuality = bimg::Quality::Enum(_options.quality + bimg::Quality::NormalMap_Default);
|
||||
bimg::imageEncodeFromRgba32f(_allocator
|
||||
, dstData
|
||||
, rgbaDst
|
||||
@@ -457,7 +458,7 @@ bimg::ImageContainer* convert(bx::AllocatorI* _allocator, const void* _inputData
|
||||
, dstMip.m_height
|
||||
, dstMip.m_depth
|
||||
, outputFormat
|
||||
, _options.quality
|
||||
, nmapQuality
|
||||
, _err
|
||||
);
|
||||
|
||||
@@ -489,7 +490,7 @@ bimg::ImageContainer* convert(bx::AllocatorI* _allocator, const void* _inputData
|
||||
, dstMip.m_height
|
||||
, dstMip.m_depth
|
||||
, outputFormat
|
||||
, _options.quality
|
||||
, nmapQuality
|
||||
, _err
|
||||
);
|
||||
}
|
||||
@@ -1362,7 +1363,7 @@ int main(int _argc, const char* _argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
help(NULL, err);
|
||||
help("Failed to create output", err);
|
||||
return bx::kExitFailure;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user