| # | Line 23 | Line 23 | unsigned long nrays = 0; /* number of calls to local | |
|---|---|---|
| 23 | static RREAL Lambfa[5] = {PI, PI, PI, 0.0, 0.0}; | |
| 24 | OBJREC Lamb = { | |
| 25 | OVOID, MAT_PLASTIC, "Lambertian", | |
| 26 | < | {0, 5, NULL, Lambfa}, NULL, |
| 26 | > | {NULL, Lambfa, 0, 5}, NULL |
| 27 | }; /* a Lambertian surface */ | |
| 28 | ||
| 29 | OBJREC Aftplane; /* aft clipping plane object */ | |
| # | Line 118 | Line 118 | rayorigin( /* start new ray from old one */ | |
| 118 | r->rweight = minweight; | |
| 119 | return(0); | |
| 120 | } | |
| 121 | < | return(r->rlvl <= maxdepth && r->rweight >= minweight ? 0 : -1); |
| 121 | > | return(r->rlvl <= abs(maxdepth) && r->rweight >= minweight ? 0 : -1); |
| 122 | } | |
| 123 | ||
| 124 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |