[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12053] trunk/blender/source/blender/ render/intern/source/rayshade.c: removed an unused function, was giving warnings.
Matt Ebb
matt at mke3.net
Mon Sep 17 07:12:57 CEST 2007
Revision: 12053
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12053
Author: broken
Date: 2007-09-17 07:12:57 +0200 (Mon, 17 Sep 2007)
Log Message:
-----------
removed an unused function, was giving warnings.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/rayshade.c
Modified: trunk/blender/source/blender/render/intern/source/rayshade.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/rayshade.c 2007-09-17 05:00:36 UTC (rev 12052)
+++ trunk/blender/source/blender/render/intern/source/rayshade.c 2007-09-17 05:12:57 UTC (rev 12053)
@@ -850,21 +850,6 @@
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
More information about the Bf-blender-cvs
mailing list