//GAUSSIAN KERNEL, Size = 9, Sigma = 1.8, calculated by: http://dev.theomader.com/gaussian-kernel-calculator/

#version 330 core

uniform sampler2D depthTexture;

in vec2 texCoords;

out vec4 color;

void main() {
	
	color = texture(depthTexture, texCoords + vec2(0, -4) * 0.0008) * 0.019959;
	color += texture(depthTexture, texCoords + vec2(0, -3) * 0.0008) * 0.057223;
	color += texture(depthTexture, texCoords + vec2(0, -2) * 0.0008) * 0.121403;
	color += texture(depthTexture, texCoords + vec2(0, -1) * 0.0008) * 0.190631;
	color += texture(depthTexture, texCoords) * 0.221569;
	color += texture(depthTexture, texCoords + vec2(0, 1) * 0.0008) * 0.190631;
	color += texture(depthTexture, texCoords + vec2(0, 2) * 0.0008) * 0.121403;
	color += texture(depthTexture, texCoords + vec2(0, 3) * 0.0008) * 0.057223;
	color += texture(depthTexture, texCoords + vec2(0, 4) * 0.0008) * 0.019959;

}