Skip to content

Commit

Permalink
gainmap: also "fix" bayer permutation for noop denoise
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Sep 14, 2024
1 parent b9c55a8 commit 95be091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipe/modules/denoise/noop.comp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 95be091

Please sign in to comment.