diff options
-rw-r--r-- | intern/cycles/render/film.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/render/film.cpp b/intern/cycles/render/film.cpp index 9fc6e867166..50b7534f7a0 100644 --- a/intern/cycles/render/film.cpp +++ b/intern/cycles/render/film.cpp @@ -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) |