diff options
author | Ton Roosendaal <ton@blender.org> | 2005-04-29 12:18:41 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-04-29 12:18:41 +0400 |
commit | c812d2ac20c351eb8aa4f1dbc8b9a468acda7e39 (patch) | |
tree | f4ea0f8a6804ffb938e1ca7a5e6ab91d4a2db057 /source/blender/render/intern/include/rendercore.h | |
parent | 1eadd455b20fc4dc57625ac1a759b22c3bf52a2e (diff) |
Two fixes in one commit.
- The ortho render recode had a weak method to calculate the Z value of the
render coordinate (shi.co[2]). Worked OK for normal render, but not in
unified, giving big errors in Ortho Unfied render.
Solved with proper math, using face equation a*x+b*y+c*y=d. Dunno why I
didn't do it in first place. :)
- Bug fix #2493. Edge render gave much different result for Ortho. This
was due to overflows in the integer math filtering zbuffer values.
Cleaned it op properly, preventing any integer overflow now.
Diffstat (limited to 'source/blender/render/intern/include/rendercore.h')
-rw-r--r-- | source/blender/render/intern/include/rendercore.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/render/intern/include/rendercore.h b/source/blender/render/intern/include/rendercore.h index 158977cef5a..5163b85d8c0 100644 --- a/source/blender/render/intern/include/rendercore.h +++ b/source/blender/render/intern/include/rendercore.h @@ -70,6 +70,7 @@ typedef struct PixStrMain } PixStrMain; +void calc_view_vector(float *view, float x, float y); float mistfactor(float zcor, float *co); /* dist and height, return alpha */ void add_halo_flare(void); |