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
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-11-14 13:20:13 +0300
committerTon Roosendaal <ton@blender.org>2007-11-14 13:20:13 +0300
commit0ca299439c705f6b692b038069c227ad8d16688f (patch)
treee06dee966673ae8d1f67f937467cdf8324107017 /source/blender/render/intern
parent96285bd30a3fbe6bc32f9efa6bdc51b0d4ef89da (diff)
Bugfix #7686
Render, Ortho, lamphalo position was off a bit due to missing correction factor.
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r--source/blender/render/intern/source/shadeoutput.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/shadeoutput.c b/source/blender/render/intern/source/shadeoutput.c
index 82feafb96d7..24eabffdf6f 100644
--- a/source/blender/render/intern/source/shadeoutput.c
+++ b/source/blender/render/intern/source/shadeoutput.c
@@ -167,6 +167,9 @@ static void spothalo(struct LampRen *lar, ShadeInput *shi, float *intens)
p1[2]= -lar->co[2];
MTC_Mat3MulVecfl(lar->imat, p1);
VECCOPY(npos, p1); // npos is double!
+
+ /* pre-scale */
+ npos[2]*= lar->sh_zfac;
}
else {
VECCOPY(npos, lar->sh_invcampos); /* in initlamp calculated */