cam.calcViewRay(ray, random,
(-halfWidth + (double)x / height),
(-.5 + (double)y / height));
scene.quickTrace(state);
// do target highlighting
int rx = (int) QuickMath.floor(ray.x.x + ray.d.x * Ray.OFFSET);
int ry = (int) QuickMath.floor(ray.x.y + ray.d.y * Ray.OFFSET);
int rz = (int) QuickMath.floor(ray.x.z + ray.d.z * Ray.OFFSET);