# | Line 206 | Line 206 | m_brdf( /* color a ray that hit a BRDTfunc material | |
---|---|---|
206 | BRDFDAT nd; | |
207 | RAY sr; | |
208 | double mirtest=0, mirdist=0; | |
209 | < | double transtest, transdist; |
209 | > | double transtest=0, transdist=0; |
210 | int hasrefl, hastrans; | |
211 | int hastexture; | |
212 | COLOR ctmp; | |
# | Line 363 | Line 363 | m_brdf2( /* color a ray that hit a BRDF material */ | |
363 | objerror(m, USER, "bad # arguments"); | |
364 | /* check for back side */ | |
365 | if (r->rod < 0.0) { | |
366 | < | if (!backvis && m->otype != MAT_TFUNC |
367 | < | && m->otype != MAT_TDATA) { |
366 | > | if (!backvis) { |
367 | raytrans(r); | |
368 | return(1); | |
369 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |