Render, Ortho, lamphalo position was off a bit due to missing correction
factor.
This commit is contained in:
2007-11-14 10:20:13 +00:00
parent 96285bd30a
commit 0ca299439c

View File

@@ -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 */