# | Line 53 | Line 53 | m_dielectric(m, r) /* color a ray which hit something | |
---|---|---|
53 | OBJREC *m; | |
54 | register RAY *r; | |
55 | { | |
56 | – | double sqrt(), pow(); |
56 | double cos1, cos2, nratio; | |
57 | COLOR mcolor; | |
58 | double mabsorp; | |
# | Line 129 | Line 128 | register RAY *r; | |
128 | if (m->otype != MAT_DIELECTRIC | |
129 | || r->rod > 0.0 | |
130 | || r->crtype & SHADOW | |
131 | < | || directinvis |
131 | > | || !directvis |
132 | || m->oargs.farg[4] == 0.0 | |
133 | || !disperse(m, r, p.rdir, trans)) | |
134 | #endif | |
# | Line 168 | Line 167 | RAY *r; | |
167 | FVECT vt; | |
168 | double tr; | |
169 | { | |
171 | – | double sqrt(); |
170 | RAY sray, *entray; | |
171 | FVECT v1, v2, n1, n2; | |
172 | FVECT dv, v2Xdv; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |