# | Line 765 | Line 765 | doambient( /* compute ambient component */ | |
---|---|---|
765 | ra[0] = maxarad; | |
766 | } | |
767 | /* flag encroached directions */ | |
768 | < | if (crlp != NULL) |
768 | > | if (crlp != NULL) /* XXX doesn't update with changes to ambacc */ |
769 | *crlp = ambcorral(hp, uv, ra[0]*ambacc, ra[1]*ambacc); | |
770 | if (pg != NULL) { /* cap gradient if necessary */ | |
771 | d = pg[0]*pg[0]*ra[0]*ra[0] + pg[1]*pg[1]*ra[1]*ra[1]; | |
# | Line 779 | Line 779 | doambient( /* compute ambient component */ | |
779 | free(hp); /* clean up and return */ | |
780 | return(1); | |
781 | } | |
782 | – |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |