diff options
author | Ton Roosendaal <ton@blender.org> | 2006-10-15 15:50:46 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-10-15 15:50:46 +0400 |
commit | 9fa438b4e94b0d61dde3e535b9d3fbc04db9a10b (patch) | |
tree | c99d85cbb02f3b6456e57ab2568fbd85fb4110db /source/blender/render/intern/include/zbuf.h | |
parent | 3b0adf0bf4f7ab61460aadc18ebeef05bb6332d9 (diff) |
Another shadowbuffer goodie: the "Halfway trick"
http://www.blender3d.org/cms/Shadow_buffer__Halfway.786.0.html
Simply said: by using the average of the nearest and 2nd nearest Z value
in Shadowbuffers you can reduce bias errors very well.
For backwards compatibility it is a new buffer type though.
Diffstat (limited to 'source/blender/render/intern/include/zbuf.h')
-rw-r--r-- | source/blender/render/intern/include/zbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/render/intern/include/zbuf.h b/source/blender/render/intern/include/zbuf.h index ebad8f241f7..cd8ad8626db 100644 --- a/source/blender/render/intern/include/zbuf.h +++ b/source/blender/render/intern/include/zbuf.h @@ -77,6 +77,7 @@ typedef struct ZSpan { float zmulx, zmuly, zofsx, zofsy; /* transform from hoco to zbuf co */ int *rectz, *arectz; /* zbuffers, arectz is for transparant */ + int *rectz1; /* seconday z buffer for shadowbuffer (2nd closest z) */ int *rectp; /* polygon index buffer */ APixstr *apixbuf, *curpstr; /* apixbuf for transparent */ struct ListBase *apsmbase; |