2024-04-14 18:52:46 -04:00
|
|
|
#version 120
|
|
|
|
|
|
|
|
#define pixelSize // [1 2 4 8 16]
|
|
|
|
//#define hBlur
|
|
|
|
|
|
|
|
varying vec2 texcoord;
|
|
|
|
|
|
|
|
uniform sampler2D gcolor;
|
|
|
|
uniform float viewWidth;
|
|
|
|
|
2024-04-17 10:54:58 -04:00
|
|
|
#include "/module/horizontal_blur.frag"
|
2024-04-14 18:52:46 -04:00
|
|
|
|
|
|
|
void main() {
|
2024-04-17 10:54:58 -04:00
|
|
|
#ifdef hblur
|
|
|
|
vec3 blurred = hblur();
|
|
|
|
gl_FragData[0] = vec4(blurred, 1);
|
|
|
|
#else
|
|
|
|
gl_FragData[0] = texture2D(gcolor, texcoord);
|
|
|
|
#endif
|
2024-04-14 18:52:46 -04:00
|
|
|
}
|
|
|
|
|