boolean hit = false;
ray.t = Double.POSITIVE_INFINITY;
for (int i = 0; i < quads.length; ++i) {
if ((data & (1<<i)) != 0) {
Quad quad = quads[i];
if (quad.intersect(ray)) {
float[] color = Texture.vines.getColor(ray.u, ray.v);
if (color[3] > Ray.EPSILON) {
ray.color.set(color);
float[] biomeColor = ray.getBiomeFoliageColor(scene);
ray.color.x *= biomeColor[0];