show noise

This commit is contained in:
ktyl 2023-03-01 00:11:29 +00:00
parent ce6376df81
commit 67d227deed
2 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,6 @@ void main()
float kSigma = 7.0;
float threshold = 0.3;
FragColor = denoise(ourTexture, TexCoord, sigma, kSigma, threshold);
//FragColor = texture(ourTexture, TexCoord);
//FragColor = denoise(ourTexture, TexCoord, sigma, kSigma, threshold);
FragColor = texture(ourTexture, TexCoord);
}

View File

@ -108,6 +108,8 @@ void main()
pixel.xyz = mix(pixel.xyz, vec3(1.0), depth);
pixel.xyz = texture(_noise, uv*.5-.5).xyz;
// output to a specific pixel in the image
imageStore(img_output, ivec2(gl_GlobalInvocationID.xy), pixel);
}