# | Line 112 | Line 112 | ambsample( /* initial ambient division sample */ | |
---|---|---|
112 | if (rayorigin(&ar, hp->atyp, hp->rp, ar.rcoef) < 0) | |
113 | return(0); | |
114 | if (ambacc > FTINY) { | |
115 | + | #ifdef SSKIPOPT |
116 | + | ar.rsrc = -1; /* protect cache from source opt. */ |
117 | + | ar.scorr = 1.f; |
118 | + | #endif |
119 | smultscolor(ar.rcoef, hp->acoef); | |
120 | scalescolor(ar.rcoef, 1./AVGREFL); | |
121 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |