light: CalcPoint: correct point before interpolating normal

This commit is contained in:
Eric Wasylishen 2016-04-10 19:42:24 -06:00
parent 4207054709
commit e395a755ab
1 changed files with 3 additions and 2 deletions

View File

@ -651,6 +651,9 @@ CalcPoints(const modelinfo_t *modelinfo, const vec3_t offset, lightsurf_t *surf,
TexCoordToWorld(us, ut, &surf->texorg, point);
VectorAdd(point, offset, point);
// corrects point
CheckObstructed(surf, offset, us, ut, point);
if (surf->curved)
{
@ -660,8 +663,6 @@ CalcPoints(const modelinfo_t *modelinfo, const vec3_t offset, lightsurf_t *surf,
{
VectorCopy(surf->plane.normal, norm);
}
CheckObstructed(surf, offset, us, ut, point);
}
}
}