diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-25 02:02:02 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-25 02:02:02 +0300 |
commit | b96985776759f04aaf9c4d891984505bfbf14b3f (patch) | |
tree | 6c6c9b1115259cd1eafdb3d4b29235136c030514 | |
parent | 7bb69869e09a82a6906fc8a3f7b48779dcc4fe09 (diff) |
Orange fix: jitter mask for OSA was off with half a pixel...
There seems to be a wrong offset for non-osa too, will look into that now.
-rw-r--r-- | source/blender/render/intern/source/zbuf.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c index 7790a4cff65..6fe31075847 100644 --- a/source/blender/render/intern/source/zbuf.c +++ b/source/blender/render/intern/source/zbuf.c @@ -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 */ |