R2 Shaders
|
Functions for performing bilateral blurs. More...
#include "R2LogDepth.h"
Go to the source code of this file.
Data Structures | |
struct | R2_bilateral_blur_depth_aware_t |
Parameters for the blur effect. More... | |
Functions | |
vec4 | R2_bilateralBlurDepthAwareSample4f (const sampler2D t, const sampler2D d, const R2_bilateral_blur_depth_aware_t blur, const vec2 uv, const float radius, const vec4 center_val, const float center_depth, inout float weight_total) |
vec4 | R2_bilateralBlurDepthAwareHorizontal4f (const sampler2D t, const sampler2D d, const R2_bilateral_blur_depth_aware_t blur, const vec2 uv) |
vec4 | R2_bilateralBlurDepthAwareVertical4f (const sampler2D t, const sampler2D d, const R2_bilateral_blur_depth_aware_t blur, const vec2 uv) |
Functions for performing bilateral blurs.
Definition in file R2BilateralBlur.h.
vec4 R2_bilateralBlurDepthAwareHorizontal4f | ( | const sampler2D | t, |
const sampler2D | d, | ||
const R2_bilateral_blur_depth_aware_t | blur, | ||
const vec2 | uv | ||
) |
Perform a single depth-aware horizontal blur sample for texel uv in t.
The texture d
is assumed to hold logarithmicaly-encoded depth samples, and the values contained within will be used to determine how much each sample contributes to the blur effect.
t | A texture |
uv | The coordinates of the current texel |
Definition at line 65 of file R2BilateralBlur.h.
vec4 R2_bilateralBlurDepthAwareVertical4f | ( | const sampler2D | t, |
const sampler2D | d, | ||
const R2_bilateral_blur_depth_aware_t | blur, | ||
const vec2 | uv | ||
) |
Perform a single depth-aware vertical blur sample for texel uv in t.
The texture d
is assumed to hold logarithmicaly-encoded depth samples, and the values contained within will be used to determine how much each sample contributes to the blur effect.
t | A texture |
uv | The coordinates of the current texel |
Definition at line 102 of file R2BilateralBlur.h.