diff options
author | Matt Ebb <matt@mke3.net> | 2007-09-17 09:12:57 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2007-09-17 09:12:57 +0400 |
commit | a36204e1b9e88ec32f739ecb730b45762c093199 (patch) | |
tree | 0e4dab1a4fb71eb232c9025bf84484c0b22432ad /source | |
parent | 01caa9179d9981ceb45130e8e30ffc695d03d8b5 (diff) |
removed an unused function, was giving warnings.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/rayshade.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c index 40f5dcc54f6..03f5fb03fea 100644 --- a/source/blender/render/intern/source/rayshade.c +++ b/source/blender/render/intern/source/rayshade.c @@ -850,21 +850,6 @@ static int adaptive_sample_variance(int samples, float *col, float *colsq, float return 0; } -static int adaptive_sample_contrast(int samples, float *prevcol, float *curcol, float thresh) -{ - /* if the last sample's contribution to the total colour was below a small threshold - * (i.e. the samples taken are very similar), then taking more samples that are probably - * going to be the same is wasting effort */ - if ( (fabs( prevcol[0]/(float)(samples-1) - curcol[0]/(float)(samples) ) < thresh) && - (fabs( prevcol[1]/(float)(samples-1) - curcol[1]/(float)(samples) ) < thresh) && - (fabs( prevcol[2]/(float)(samples-1) - curcol[2]/(float)(samples) ) < thresh) ) - { - return 1; - } - else - return 0; -} - static int adaptive_sample_contrast_val(int samples, float prev, float val, float thresh) { /* if the last sample's contribution to the total value was below a small threshold |