Revision 3365725b
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/blur/BlurRenderer.java | ||
---|---|---|
73 | 73 |
|
74 | 74 |
int setBlur(int blur) |
75 | 75 |
{ |
76 |
int radius = blur/3;
|
|
76 |
int radius = blur/2;
|
|
77 | 77 |
mRadiusSta.set(radius); |
78 | 78 |
return radius; |
79 | 79 |
} |
Also available in: Unified diff
Separable Gaussian Blur with linear sampling done.
Linear sampling implemented - i.e. blurring by a (2N+1)x(2N+1) gaussian kernel (centeral pixel + N pixels in each direction) requires exactly 2N + (N%2==1 ? 4:2) texture fetches.