Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-05-09 18:37:32 +0400
committerThomas Dinges <blender@dingto.org>2013-05-09 18:37:32 +0400
commit602a7f77c6eead5b72a84207b02d111bf64df8cf (patch)
treec76eb63553217740a7afd2d5488658b126c78f59 /intern
parent13bcf0c104332dbbee8b779b0ff8f1865b9810ea (diff)
Cycles / Filter functions:
* Avoid some variable castings here to save some calculations.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/film.cpp6
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)