mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 21:23:18 +02:00
Try the constant gaussian values which are more stable on mac...
This commit is contained in:
parent
b7f14789af
commit
6bcd7f10ad
1 changed files with 1 additions and 2 deletions
|
@ -134,6 +134,7 @@ float getBlurEdgeSharpness() {
|
|||
return params._blurInfo.x;
|
||||
}
|
||||
|
||||
#define CONSTANT_GAUSSIAN
|
||||
#ifdef CONSTANT_GAUSSIAN
|
||||
const int BLUR_RADIUS = 4;
|
||||
const float gaussian[BLUR_RADIUS + 1] =
|
||||
|
@ -146,12 +147,10 @@ float[](0.153170, 0.144893, 0.122649, 0.092902, 0.062970); // stddev = 2.0
|
|||
|
||||
int getBlurRadius() {
|
||||
return BLUR_RADIUS;
|
||||
return int(params._blurInfo.y);
|
||||
}
|
||||
|
||||
float getBlurCoef(int c) {
|
||||
return gaussian[c];
|
||||
return params._gaussianCoefs[c];
|
||||
}
|
||||
#else
|
||||
int getBlurRadius() {
|
||||
|
|
Loading…
Reference in a new issue