# | Line 108 | Line 108 | rayorigin( /* start new ray from old one */ | |
---|---|---|
108 | if (r->crtype & SHADOW) /* shadow commitment */ | |
109 | return(0); | |
110 | /* ambient in photon map? */ | |
111 | < | if (r->crtype & AMBIENT && photonMapping) |
111 | > | if (photonMapping && ro != NULL && ro->crtype & AMBIENT) |
112 | return(-1); | |
113 | if (maxdepth <= 0 && rc != NULL) { /* Russian roulette */ | |
114 | if (minweight <= 0.0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |