R2 Core Shaders

R2FilterBilateralBlurDepthAwareHorizontal4f.frag
Go to the documentation of this file.
1 /// \file R2FilterBilateralBlurDepthAwareHorizontal4f.frag
2 /// \brief Horizontal RGBA bilateral depth-aware blur filter
3
4 #include "R2BilateralBlur.h"
5
6 in vec2 R2_uv;
7
8 uniform sampler2D R2_texture_image;
9 uniform sampler2D R2_texture_depth;
10 uniform R2_bilateral_blur_depth_aware_t R2_blur;
11
12 out vec4 R2_out_rgba;
13
14 void
15 main (void)
16 {
17 R2_out_rgba = R2_bilateralBlurDepthAwareHorizontal4f(
18 R2_texture_image,
19 R2_texture_depth,
20 R2_blur,
21 R2_uv);
22 }
R2_bilateralBlurDepthAwareHorizontal4f
vec4 R2_bilateralBlurDepthAwareHorizontal4f(const sampler2D t, const sampler2D d, const R2_bilateral_blur_depth_aware_t blur, const vec2 uv)
Definition: R2BilateralBlur.h:65
R2_bilateral_blur_depth_aware_t
Parameters for the blur effect.
Definition: R2BilateralBlur.h:11
R2BilateralBlur.h
Functions for performing bilateral blurs.