aeon-199x/shaders/final.fsh

22 lines
339 B
Text
Raw Normal View History

#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"
void main() {
2024-04-17 11:20:09 -04:00
#ifdef hBlur
2024-04-17 10:54:58 -04:00
vec3 blurred = hblur();
gl_FragData[0] = vec4(blurred, 1);
#else
gl_FragData[0] = texture2D(gcolor, texcoord);
#endif
}