Orange fix: jitter mask for OSA was off with half a pixel...
authorTon Roosendaal <ton@blender.org>
Tue, 24 Jan 2006 23:02:02 +0000 (23:02 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 24 Jan 2006 23:02:02 +0000 (23:02 +0000)
There seems to be a wrong offset for non-osa too, will look into that now.

source/blender/render/intern/source/zbuf.c

index 7790a4cff650f847a62311238bbd118984f84772..6fe31075847e703a0924dd63e190d608b2626bc8 100644 (file)
@@ -1606,12 +1606,13 @@ void zbuffer_solid(RenderPart *pa)
        /* needed for transform from hoco to zbuffer co */
        zspan.zmulx=  ((float)R.winx)/2.0;
        zspan.zmuly=  ((float)R.winy)/2.0;
-       zspan.zofsx= -pa->disprect.xmin -0.5f;
-       zspan.zofsy= -pa->disprect.ymin -0.5f;
-       
        if(R.osa) {
-               zspan.zofsx-= R.jit[pa->sample][0];
-               zspan.zofsy-= R.jit[pa->sample][1];
+               zspan.zofsx= -pa->disprect.xmin - R.jit[pa->sample][0];
+               zspan.zofsy= -pa->disprect.ymin - R.jit[pa->sample][1];
+       }
+       else {
+               zspan.zofsx= -pa->disprect.xmin -0.5f;
+               zspan.zofsy= -pa->disprect.ymin -0.5f;
        }
        
        /* the buffers */