 		idaten::TypedCudaMemory<Path> paths;
 		paths.init(width * height);
 
+		idaten::TypedCudaMemory<aten::ray> rays;
+		rays.init(width * height);
+
 		idaten::TypedCudaMemory<ShadowRay> shadowRays;
 		shadowRays.init(width * height);
 


__global__ void hitTest(
	Path* paths,
	int width, int height,
	aten::ShapeParameter* shapes, int geomnum,
	aten::MaterialParameter* mtrls,

		&sampling,
		mtrl,
		orienting_normal,
		ray.dir,
		path.rec.normal,
		&path.sampler,
		path.rec.u, path.rec.v);
