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
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2007-09-17 09:12:57 +0400
committerMatt Ebb <matt@mke3.net>2007-09-17 09:12:57 +0400
commita36204e1b9e88ec32f739ecb730b45762c093199 (patch)
tree0e4dab1a4fb71eb232c9025bf84484c0b22432ad /source/blender/render
parent01caa9179d9981ceb45130e8e30ffc695d03d8b5 (diff)
removed an unused function, was giving warnings.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/rayshade.c15
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