# | Line 157 | Line 157 | direct_bsdf_OK(COLOR cval, FVECT ldir, double omega, B | |
---|---|---|
157 | return(ok); | |
158 | baderror: | |
159 | objerror(ndp->mp, USER, transSDError(ec)); | |
160 | + | return(0); /* gratis return */ |
161 | } | |
162 | ||
163 | /* Compute source contribution for BSDF (reflected & transmitted) */ | |
# | Line 556 | Line 557 | m_bsdf(OBJREC *m, RAY *r) | |
557 | bnorm[2] = -nd.pnorm[2]; | |
558 | if (nd.thick != 0) { /* proxy with offset? */ | |
559 | VCOPY(vtmp, r->rop); | |
560 | < | VSUM(r->rop, vtmp, r->ron, -nd.thick); |
560 | > | VSUM(r->rop, vtmp, r->ron, nd.thick); |
561 | multambient(ctmp, r, bnorm); | |
562 | VCOPY(r->rop, vtmp); | |
563 | } else |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |