R2 Shaders
R2FilterBoxBlurVertical4f.frag
Go to the documentation of this file.
1 /// \file R2FilterBoxBlurVertical4f.frag
2 /// \brief Vertical RGBA box blur filter
3 
4 #include "R2BoxBlur.h"
5 
6 in vec2 R2_uv;
7 
8 uniform sampler2D R2_texture;
9 uniform float R2_blur_size;
10 
11 out vec4 R2_out_rgba;
12 
13 void
14 main (void)
15 {
16  R2_out_rgba = R2_boxBlurVertical4f (R2_texture, R2_uv, R2_blur_size);
17 }
Functions for performing box blurs.
vec4 R2_boxBlurVertical4f(const sampler2D t, const vec2 uv, const float size)
Definition: R2BoxBlur.h:22