Remove errorThreshold.
This commit is contained in:
parent
3383851e44
commit
c8ac20ee0f
@ -364,9 +364,6 @@ void nv::compressBC4(const Image * image, const nvtt::OutputOptions::Private & o
|
||||
const uint w = image->width();
|
||||
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;
|
||||
AlphaBlockDXT5 block;
|
||||
|
||||
|
@ -71,10 +71,9 @@ void CompressionOptions::setFormat(Format format)
|
||||
|
||||
|
||||
/// Set compression quality settings.
|
||||
void CompressionOptions::setQuality(Quality quality, float errorThreshold /*= 0.5f*/)
|
||||
void CompressionOptions::setQuality(Quality quality)
|
||||
{
|
||||
m.quality = quality;
|
||||
m.errorThreshold = errorThreshold;
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,7 +36,6 @@ namespace nvtt
|
||||
Format format;
|
||||
|
||||
Quality quality;
|
||||
float errorThreshold; // deprecated.
|
||||
|
||||
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 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_DEPRECATED void enableHardwareCompression(bool enable);
|
||||
|
Loading…
Reference in New Issue
Block a user