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

Ton Roosendaal ton at blender.org
Tue Nov 29 22:44:47 CET 2005


ton (Ton Roosendaal) 2005/11/29 22:44:47 CET

  Modified files:
    blender/source/blender/render/intern/source rendercore.c 
  
  Log:
  Bugfix #3493
  
  Replaced sqrt() with the safe version sasqrt() in anisotropic.
  the formula (1 - n*n) should not give negative values for n = dotproduct
  of normals, but float inaccuracy can make negative zeros, as we know!
  
  This solves, hopefully, last annoying "blotches" in hair!
  
  Revision  Changes    Path
  1.127     +12 -13    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.126&r2=1.127&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list