Two fixes in one commit.
authorTon Roosendaal <ton@blender.org>
Fri, 29 Apr 2005 08:18:41 +0000 (08:18 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 29 Apr 2005 08:18:41 +0000 (08:18 +0000)
commitc812d2ac20c351eb8aa4f1dbc8b9a468acda7e39
treef4ea0f8a6804ffb938e1ca7a5e6ab91d4a2db057
parent1eadd455b20fc4dc57625ac1a759b22c3bf52a2e
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.
source/blender/render/intern/include/rendercore.h
source/blender/render/intern/source/edgeRender.c
source/blender/render/intern/source/rendercore.c
source/blender/render/intern/source/vanillaRenderPipe.c