From 602a7f77c6eead5b72a84207b02d111bf64df8cf Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Thu, 9 May 2013 14:37:32 +0000 Subject: Cycles / Filter functions: * Avoid some variable castings here to save some calculations. --- intern/cycles/render/film.cpp | 6 +++--- 1 file 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& 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 filter_table(FilterType type, float width) -- cgit v1.2.3