~ | First denoising attempt

This commit is contained in:
RedShip
2025-02-07 20:17:43 +01:00
parent 2b879218ed
commit 47bf193752
4 changed files with 44 additions and 3 deletions

View File

@ -238,7 +238,11 @@ void main()
ivec2 pixel_coords = ivec2(gl_GlobalInvocationID.xy);
if (pixel_coords.x >= int(u_resolution.x) || pixel_coords.y >= int(u_resolution.y))
return;
// if (pixel_coords.x % 50 == 0 || pixel_coords.y % 50 == 0)
// imageStore(output_image, pixel_coords, vec4(1.,0.,0., 0.));
// return ;
if (u_pixelisation != 1 && (uint(pixel_coords.x) % u_pixelisation != 0 || uint(pixel_coords.y) % u_pixelisation != 0))
return;