forked from bartvdbraak/blender
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.
This commit is contained in:
parent
7bb69869e0
commit
b969857767
@ -1606,12 +1606,13 @@ void zbuffer_solid(RenderPart *pa)
|
|||||||
/* needed for transform from hoco to zbuffer co */
|
/* needed for transform from hoco to zbuffer co */
|
||||||
zspan.zmulx= ((float)R.winx)/2.0;
|
zspan.zmulx= ((float)R.winx)/2.0;
|
||||||
zspan.zmuly= ((float)R.winy)/2.0;
|
zspan.zmuly= ((float)R.winy)/2.0;
|
||||||
|
if(R.osa) {
|
||||||
|
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.zofsx= -pa->disprect.xmin -0.5f;
|
||||||
zspan.zofsy= -pa->disprect.ymin -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];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the buffers */
|
/* the buffers */
|
||||||
|
Loading…
Reference in New Issue
Block a user