[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14420] trunk/blender/source/blender/ render/intern/source/shadeoutput.c:

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Apr 14 17:40:36 CEST 2008


Revision: 14420
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14420
Author:   blendix
Date:     2008-04-14 17:40:32 +0200 (Mon, 14 Apr 2008)

Log Message:
-----------

Fix for bug #7903 and #8960: arealight giving black borders and not
working correct with translucency. Removed a check that presumably
is an optimization, but can't work correct and also gives no noticable
performance difference in my tests.

Modified Paths:
--------------
    trunk/blender/source/blender/render/intern/source/shadeoutput.c

Modified: trunk/blender/source/blender/render/intern/source/shadeoutput.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/shadeoutput.c	2008-04-14 13:09:08 UTC (rev 14419)
+++ trunk/blender/source/blender/render/intern/source/shadeoutput.c	2008-04-14 15:40:32 UTC (rev 14420)
@@ -429,10 +429,6 @@
 	double cross[4][3];	/* cross products of this */
 	double rad[4];		/* angles between vecs */
 
-	/* extra test for dot */
-	if ( INPR(co, vn) <= 0.0f)
-		return 0.0f;
-	
 	VECSUB(vec[0], co, area[0]);
 	VECSUB(vec[1], co, area[1]);
 	VECSUB(vec[2], co, area[2]);





More information about the Bf-blender-cvs mailing list