ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/normal.c
(Generate patch)

Comparing ray/src/rt/normal.c (file contents):
Revision 2.77 by greg, Tue Nov 13 19:58:33 2018 UTC vs.
Revision 2.78 by greg, Wed Feb 13 01:00:31 2019 UTC

# Line 273 | Line 273 | m_normal(                      /* color a ray that hit something normal *
273                          rayvalue(&lr);
274                          multcolor(lr.rcol, lr.rcoef);
275                          addcolor(r->rcol, lr.rcol);
276 <                        r->rxt = r->rot + raydistance(&lr);
276 >                        if (nd.tspec >= 1.0-FTINY) {
277 >                                                /* completely transparent */
278 >                                multcolor(lr.mcol, lr.rcoef);
279 >                                copycolor(r->mcol, lr.mcol);
280 >                                r->rmt = r->rot + lr.rmt;
281 >                                r->rxt = r->rot + lr.rxt;
282 >                        } else
283 >                                r->rxt = r->rot + raydistance(&lr);
284                  }
285          }
286  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines