 				hitTest << <grid, block >> > (
 				//hitTest << <1, 1 >> > (
 					paths.ptr(),
+					isects.ptr(),
 					rays.ptr(),
 					width, height,
 					shapeparam.ptr(), shapeparam.num(),


	aten::hitrecord rec;

	auto obj = &ctxt.shapes[path.isect.objid];
	evalHitResult(&ctxt, obj, ray, &rec, &path.isect);

	aten::MaterialParameter* mtrl = &ctxt.mtrls[rec.mtrlid];


struct Path {
	aten::vec3 throughput;
	aten::vec3 contrib;
	aten::sampler sampler;
	
	real pdfb;
