[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32412] trunk/blender/source/blender/ render/intern/source/shadeoutput.c: Add note about Inv Quad falloff of lamp that there seems to be a hack in use .
Nathan Letwory
nathan at letworyinteractive.com
Mon Oct 11 11:52:25 CEST 2010
Revision: 32412
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32412
Author: jesterking
Date: 2010-10-11 11:52:25 +0200 (Mon, 11 Oct 2010)
Log Message:
-----------
Add note about Inv Quad falloff of lamp that there seems to be a hack in use.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/shadeoutput.c
Modified: trunk/blender/source/blender/render/intern/source/shadeoutput.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/shadeoutput.c 2010-10-11 09:02:19 UTC (rev 32411)
+++ trunk/blender/source/blender/render/intern/source/shadeoutput.c 2010-10-11 09:52:25 UTC (rev 32412)
@@ -1141,6 +1141,11 @@
visifac = lar->dist/(lar->dist + dist[0]);
break;
case LA_FALLOFF_INVSQUARE:
+ /* NOTE: This seems to be a hack since commit r12045 says this
+ * option is similar to old Quad, but with slight changes.
+ * Correct inv square would be (which would be old Quad):
+ * visifac = lar->distkw / (lar->distkw + dist[0]*dist[0]);
+ */
visifac = lar->dist / (lar->dist + dist[0]*dist[0]);
break;
case LA_FALLOFF_SLIDERS:
More information about the Bf-blender-cvs
mailing list