Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-10-15 15:50:46 +0400
committerTon Roosendaal <ton@blender.org>2006-10-15 15:50:46 +0400
commit9fa438b4e94b0d61dde3e535b9d3fbc04db9a10b (patch)
treec99d85cbb02f3b6456e57ab2568fbd85fb4110db /source/blender/makesdna/DNA_lamp_types.h
parent3b0adf0bf4f7ab61460aadc18ebeef05bb6332d9 (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/makesdna/DNA_lamp_types.h')
-rw-r--r--source/blender/makesdna/DNA_lamp_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_lamp_types.h b/source/blender/makesdna/DNA_lamp_types.h
index bc233b14fa4..22696c48878 100644
--- a/source/blender/makesdna/DNA_lamp_types.h
+++ b/source/blender/makesdna/DNA_lamp_types.h
@@ -115,6 +115,7 @@ typedef struct Lamp {
/* buftype, no flag */
#define LA_SHADBUF_REGULAR 0
#define LA_SHADBUF_IRREGULAR 1
+#define LA_SHADBUF_HALFWAY 2
/* bufflag, auto clipping */
#define LA_SHADBUF_AUTO_START 1