[Bf-blender-cvs] CVS commit: blender/source/blender/render/intern/source rendercore.c

Ton Roosendaal ton at blender.org
Mon Apr 11 10:49:42 CEST 2005


ton (Ton Roosendaal) 2005/04/11 10:49:42 CEST

  Modified files:
    blender/source/blender/render/intern/source rendercore.c 
  
  Log:
  Bug fix #2424
  
  With a sun lamp shining exact perpendicular to a face, the result was
  undefined (black or full lit). Was caused by using acos() without checking
  the input range. Float calculus can result in small under or overflows...
  therefore: always use the arithb.c function saacos() !!!
  
  Found more acos() usage in rendercore (in blinn and arealight too), removed
  all of them. Might solve the white or black dots people were complaining
  about?
  
  Revision  Changes    Path
  1.112     +10 -10    blender/source/blender/render/intern/source/rendercore.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/render/intern/source/rendercore.c.diff?r1=1.111&r2=1.112&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list