show noise
This commit is contained in:
		
							parent
							
								
									ce6376df81
								
							
						
					
					
						commit
						67d227deed
					
				@ -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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user