Small cleanup and improvements in ColorGrading (#4320)

Saturation and vibrance were using the wrong luminance weights,
and this change switches EVILS to HK weighted luminance weights
to give better results.
This commit is contained in:
Romain Guy
2021-07-14 16:23:55 -07:00
committed by GitHub
parent 17d67f2a39
commit 4080a0a5d5
5 changed files with 42 additions and 19 deletions

View File

@@ -473,7 +473,8 @@ LinearImage EXRDecoder::decode() {
size_t i = 0;
for (uint32_t y = 0; y < height; y++) {
for (uint32_t x = 0; x < width; x++) {
filament::math::float3& pixel = *reinterpret_cast< filament::math::float3*>(image.getPixelRef(x, y));
filament::math::float3& pixel =
*reinterpret_cast< filament::math::float3*>(image.getPixelRef(x, y));
pixel.r = rgba[i++];
pixel.g = rgba[i++];
pixel.b = rgba[i++];