Remove errorThreshold.
This commit is contained in:
@ -364,9 +364,6 @@ void nv::compressBC4(const Image * image, const nvtt::OutputOptions::Private & o
|
|||||||
const uint w = image->width();
|
const uint w = image->width();
|
||||||
const uint h = image->height();
|
const uint h = image->height();
|
||||||
|
|
||||||
// threshold should be from [0 - 1] but may also be higher...
|
|
||||||
const uint threshold = uint(compressionOptions.errorThreshold * 256);
|
|
||||||
|
|
||||||
ColorBlock rgba;
|
ColorBlock rgba;
|
||||||
AlphaBlockDXT5 block;
|
AlphaBlockDXT5 block;
|
||||||
|
|
||||||
|
@ -71,10 +71,9 @@ void CompressionOptions::setFormat(Format format)
|
|||||||
|
|
||||||
|
|
||||||
/// Set compression quality settings.
|
/// Set compression quality settings.
|
||||||
void CompressionOptions::setQuality(Quality quality, float errorThreshold /*= 0.5f*/)
|
void CompressionOptions::setQuality(Quality quality)
|
||||||
{
|
{
|
||||||
m.quality = quality;
|
m.quality = quality;
|
||||||
m.errorThreshold = errorThreshold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ namespace nvtt
|
|||||||
Format format;
|
Format format;
|
||||||
|
|
||||||
Quality quality;
|
Quality quality;
|
||||||
float errorThreshold; // deprecated.
|
|
||||||
|
|
||||||
nv::Vector4 colorWeight;
|
nv::Vector4 colorWeight;
|
||||||
|
|
||||||
|
0
src/nvtt/nvtt.cs
Executable file → Normal file
0
src/nvtt/nvtt.cs
Executable file → Normal file
@ -96,7 +96,7 @@ namespace nvtt
|
|||||||
NVTT_API void reset();
|
NVTT_API void reset();
|
||||||
|
|
||||||
NVTT_API void setFormat(Format format);
|
NVTT_API void setFormat(Format format);
|
||||||
NVTT_API void setQuality(Quality quality, float errorThreshold = 0.5f);
|
NVTT_API void setQuality(Quality quality);
|
||||||
NVTT_API void setColorWeights(float red, float green, float blue, float alpha = 1.0f);
|
NVTT_API void setColorWeights(float red, float green, float blue, float alpha = 1.0f);
|
||||||
|
|
||||||
NVTT_DEPRECATED void enableHardwareCompression(bool enable);
|
NVTT_DEPRECATED void enableHardwareCompression(bool enable);
|
||||||
|
Reference in New Issue
Block a user