mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-02-02 17:01:08 +00:00
Multiple single pixel error by number of pixels in the partition
This commit is contained in:
parent
d23125e14c
commit
b072d10b6c
|
@ -744,7 +744,7 @@ double BC7CompressionMode::CompressCluster(const RGBACluster &cluster, RGBAVecto
|
||||||
alphaIndices[i] = 1;
|
alphaIndices[i] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return bestErr;
|
return cluster.GetNumPoints() * bestErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
RGBACluster rgbCluster;
|
RGBACluster rgbCluster;
|
||||||
|
@ -1107,7 +1107,7 @@ double BC7CompressionMode::CompressCluster(const RGBACluster &cluster, RGBAVecto
|
||||||
bestIndices[i] = 1;
|
bestIndices[i] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return bestErr;
|
return cluster.GetNumPoints() * bestErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now that we know the index of each pixel, we can assign the endpoints based on a least squares fit
|
// Now that we know the index of each pixel, we can assign the endpoints based on a least squares fit
|
||||||
|
|
Loading…
Reference in a new issue