Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiQing-R committed Dec 6, 2024
2 parents ba04cac + 0beff8c commit 8822ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shaders/bilateral_cleanup_pass.comp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ void main()
vec3 result = vec3(0.0,0.0,0.0);
float weightSum = 0.0;

if(length(centerColor) < 0.0001 || sqrt(variance) < 1.0){
if(length(centerColor) < 0.0001 || sqrt(variance) < 0.1){
imageStore(bilateralCleanupColor, imageCoords, vec4(0.0));
return;
}

// Define sigma values
float sigmaS = clamp (sqrt(variance) , 2.0, 6.0);
float sigmaS = clamp (sqrt(variance) , 2.0, 4.0);
float sigmaR = 0.5;
// Define a kernel radius for the spatial domain
int kernelRadius = int(0.5 * sigmaS);
Expand Down

0 comments on commit 8822ae9

Please sign in to comment.