[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56625] trunk/blender/intern/cycles/render /film.cpp: Cycles / Filter functions:
Thomas Dinges
blender at dingto.org
Thu May 9 16:37:32 CEST 2013
Revision: 56625
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56625
Author: dingto
Date: 2013-05-09 14:37:32 +0000 (Thu, 09 May 2013)
Log Message:
-----------
Cycles / Filter functions:
* Avoid some variable castings here to save some calculations.
Modified Paths:
--------------
trunk/blender/intern/cycles/render/film.cpp
Modified: trunk/blender/intern/cycles/render/film.cpp
===================================================================
--- trunk/blender/intern/cycles/render/film.cpp 2013-05-09 14:21:36 UTC (rev 56624)
+++ trunk/blender/intern/cycles/render/film.cpp 2013-05-09 14:37:32 UTC (rev 56625)
@@ -178,13 +178,13 @@
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)
More information about the Bf-blender-cvs
mailing list