mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 05:41:03 +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;
|
||||
}
|
||||
|
||||
return bestErr;
|
||||
return cluster.GetNumPoints() * bestErr;
|
||||
}
|
||||
|
||||
RGBACluster rgbCluster;
|
||||
|
@ -1107,7 +1107,7 @@ double BC7CompressionMode::CompressCluster(const RGBACluster &cluster, RGBAVecto
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue