diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-09 22:56:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-09 22:56:12 +0400 |
commit | 2c1abe1f5861330315a1fc58e7dfe298b8356449 (patch) | |
tree | a352dc0dbb973a014522f7f2033bf54a7953c85e /intern/cycles/render/filter.cpp | |
parent | c6cffe98fa5eb6108956d484596153d214687e67 (diff) |
style cleanup: assignment & indentation.
Diffstat (limited to 'intern/cycles/render/filter.cpp')
-rw-r--r-- | intern/cycles/render/filter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/render/filter.cpp b/intern/cycles/render/filter.cpp index 9bcf57b5a27..0bd4fb4d579 100644 --- a/intern/cycles/render/filter.cpp +++ b/intern/cycles/render/filter.cpp @@ -73,17 +73,17 @@ static vector<float> filter_table(FilterType type, float width) /* compute cumulative distribution function */ filter_table_cdf[0] = 0.0f; - for(i=0; i<filter_table_size; i++) { + for(i = 0; i < filter_table_size; i++) { float x = i*width*0.5f/(filter_table_size-1); float y = filter_func(x, width); filter_table_cdf[i+1] += filter_table_cdf[i] + fabsf(y); } - for(i=0; i<=filter_table_size; i++) + for(i = 0; i <= filter_table_size; i++) filter_table_cdf[i] /= filter_table_cdf[filter_table_size]; /* create importance sampling table */ - for(i=0; i<=half_size; i++) { + for(i = 0; i <= half_size; i++) { float x = i/(float)half_size; int index = upper_bound(filter_table_cdf.begin(), filter_table_cdf.end(), x) - filter_table_cdf.begin(); float t; |