Fix #35219: blender internal auto ray bias to avoid the terminator shadow

problem was giving light flickering on a mesh with animated hair strands.

Now strands are not used to compute this auto bias excluded from this, from
tests it does not seem to be helpful for hair and only gives issues.
This commit is contained in:
Brecht Van Lommel 2013-05-08 13:23:20 +00:00
parent a07dcd67eb
commit 4d842df17e

@ -4194,7 +4194,7 @@ static void set_phong_threshold(ObjectRen *obr)
for (i=0; i<obr->totvlak; i++) {
vlr= RE_findOrAddVlak(obr, i);
if (vlr->flag & R_SMOOTH) {
if ((vlr->flag & R_SMOOTH) && (vlr->flag & R_STRAND)==0) {
dot= dot_v3v3(vlr->n, vlr->v1->n);
dot= ABS(dot);
if (dot>0.9f) {