diff --git a/src/pipe/modules/denoise/noop.comp b/src/pipe/modules/denoise/noop.comp index fb236db1..a226df7c 100644 --- a/src/pipe/modules/denoise/noop.comp +++ b/src/pipe/modules/denoise/noop.comp @@ -46,7 +46,7 @@ main() vec2 pos = (0.5 + ipos + push.crop.xy) / textureSize(img_in, 0); pos = clamp((pos * push.map_os.zw) - push.map_os.xy, vec2(0.), vec2(1.)); vec4 gains = texture(img_gainmap, pos); - float gain = gains[(ipos.x & 1) + (ipos.y & 1) * 2]; + float gain = gains[(ipos.x & 1) + (1-(ipos.y & 1)) * 2]; // this permutation looks good on the samples i have. let's see how long it lasts. col *= gain; } // end gainmap imageStore(img_out, ipos, vec4(col, 1));