diff options
author | Thomas Dinges <blender@dingto.org> | 2013-05-09 18:37:32 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-05-09 18:37:32 +0400 |
commit | 602a7f77c6eead5b72a84207b02d111bf64df8cf (patch) | |
tree | c76eb63553217740a7afd2d5488658b126c78f59 /intern/cycles/render/film.cpp | |
parent | 13bcf0c104332dbbee8b779b0ff8f1865b9810ea (diff) |
Cycles / Filter functions:
* Avoid some variable castings here to save some calculations.
Diffstat (limited to 'intern/cycles/render/film.cpp')
-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) |