Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2010-10-11 13:52:25 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-10-11 13:52:25 +0400
commit737bc66f2aee939dc98adb4d6e9610a99c09059a (patch)
treef0c90e6b0ece6103258acfbe910d2da0cba606ff /source
parent7ab02f1ec17b4a48aedb2ab4ec43d0fe2d62c565 (diff)
Add note about Inv Quad falloff of lamp that there seems to be a hack in use.
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/shadeoutput.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/shadeoutput.c b/source/blender/render/intern/source/shadeoutput.c
index 81de553b209..4142522e003 100644
--- a/source/blender/render/intern/source/shadeoutput.c
+++ b/source/blender/render/intern/source/shadeoutput.c
@@ -1141,6 +1141,11 @@ float lamp_get_visibility(LampRen *lar, float *co, float *lv, float *dist)
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: