[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13203] branches/soc-2007-joeedh/source/ blender/render/intern/source/zbuf.c: Forgot to add soft multiplyer to the new zbuffer_dsm.

Joseph Eagar joeedh at gmail.com
Fri Jan 11 11:12:11 CET 2008


Revision: 13203
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13203
Author:   joeedh
Date:     2008-01-11 11:12:11 +0100 (Fri, 11 Jan 2008)

Log Message:
-----------
Forgot to add soft multiplyer to the new zbuffer_dsm.

Note that soft shadow filtering in DSM works a lot like the old classical buffers (minus the soft sampling done at render time) and is mainly meant for anti-aliasing the structure, due to its nature of oversampling (which can dramatically increase the buffer creation time).

Modified Paths:
--------------
    branches/soc-2007-joeedh/source/blender/render/intern/source/zbuf.c

Modified: branches/soc-2007-joeedh/source/blender/render/intern/source/zbuf.c
===================================================================
--- branches/soc-2007-joeedh/source/blender/render/intern/source/zbuf.c	2008-01-11 05:39:43 UTC (rev 13202)
+++ branches/soc-2007-joeedh/source/blender/render/intern/source/zbuf.c	2008-01-11 10:12:11 UTC (rev 13203)
@@ -3411,8 +3411,8 @@
 		copyto_abufz(re, pa, zspan->arectz, zsample);	/* init zbuffer */
 		zspan->mask= zsample;
 
-		zspan->zofsx= -pa->disprect.xmin - shb->jit[2*zsample];
-		zspan->zofsy= -pa->disprect.ymin - shb->jit[2*zsample+1];
+		zspan->zofsx= -pa->disprect.xmin - shb->jit[2*zsample]*DSM_AAWIDTH;
+		zspan->zofsy= -pa->disprect.ymin - shb->jit[2*zsample+1]*DSM_AAWIDTH;
 
 		/* to center the sample position */
 		zspan->zofsx -= 0.5f;





More information about the Bf-blender-cvs mailing list