Cycles / Filter functions:

* Avoid some variable castings here to save some calculations.
This commit is contained in:
Thomas Dinges 2013-05-09 14:37:32 +00:00
parent 13bcf0c104
commit 602a7f77c6

@ -178,13 +178,13 @@ bool Pass::contains(const vector<Pass>& passes, PassType type)
static float filter_func_box(float v, float width)
{
return (float)1;
return 1.0f;
}
static float filter_func_gaussian(float v, float width)
{
v *= (float)2/width;
return (float)expf((float)-2*v*v);
v *= 2.0f/width;
return expf(-2.0f*v*v);
}
static vector<float> filter_table(FilterType type, float width)