 // SUNSPOT PASS 4 FS
 
 uniform sampler2D textureToBlur;
 uniform float screenWidth;
 uniform float screenHeight;
  
 void main()
 {	
 	vec4 sample[5];
    float pixelSizeX = 1.0 / 512.0;
	float pixelSizeY = 1.0 / 512.0;
	vec2 screenXY = vec2(gl_FragCoord.s / 512.0, gl_FragCoord.t / 512.0);
	
	sample[0] = vec4(texture2D(textureToBlur, screenXY));
	//sample[0] = vec4(texture2D(textureToBlur, vec2(screenXY.s, screenXY.t)));
	
	// left
	sample[1] = vec4(texture2D(textureToBlur, vec2(screenXY.s-pixelSizeX, screenXY.t)));
	
	// right
	sample[2] = vec4(texture2D(textureToBlur, vec2(screenXY.s+pixelSizeX, screenXY.t)));
	
	// above
	sample[3] = vec4(texture2D(textureToBlur, vec2(screenXY.s, screenXY.t+pixelSizeY)));
	
	// below
	sample[4] = vec4(texture2D(textureToBlur, vec2(screenXY.s, screenXY.t-pixelSizeY)));

	//gl_FragColor = (sample[0] + sample[1] + sample[2] + sample[3] +sample[4])/5.0;
	gl_FragColor = sample[0];
	//gl_FragColor = vec4(1,1,1,1);
 }
 