Lines Matching refs:ry
149 color ext_volume_texture(vector *hit, texture *tex, ray *ry) { in ext_volume_texture() argument
174 if (ry->d.x == 0.0) { in ext_volume_texture()
175 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in ext_volume_texture()
179 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in ext_volume_texture()
180 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in ext_volume_texture()
196 if (ry->d.y == 0.0) { in ext_volume_texture()
197 if ((ry->o.y < bx->min.y) || (ry->o.y > bx->max.y)) in ext_volume_texture()
201 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in ext_volume_texture()
202 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in ext_volume_texture()
218 if (ry->d.z == 0.0) { in ext_volume_texture()
219 if ((ry->o.z < bx->min.z) || (ry->o.z > bx->max.z)) in ext_volume_texture()
223 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in ext_volume_texture()
224 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in ext_volume_texture()
257 pnt.x = ((ry->o.x + (ry->d.x * t)) - bx->min.x) / bln.x; in ext_volume_texture()
258 pnt.y = ((ry->o.y + (ry->d.y * t)) - bx->min.y) / bln.y; in ext_volume_texture()
259 pnt.z = ((ry->o.z + (ry->d.z * t)) - bx->min.z) / bln.z; in ext_volume_texture()
326 transcol = shade_transmission(ry, hit, 1.0 - sum); in ext_volume_texture()