 	evalHitResult(&ctxt, obj, ray, &rec, &path.isect);
 
 	aten::MaterialParameter* mtrl = &ctxt.mtrls[rec.mtrlid];
-	aten::MaterialParameter* prevMtrl = (path.mtrlid >= 0 ? &ctxt.mtrls[path.mtrlid] : nullptr);
 
 	// ʒu̖@.
 	// ̂̃C̓ol.

	// Make next ray.
	rays[idx] = aten::ray(rec.p, nextDir);

	path.mtrlid = rec.mtrlid;
	path.pdfb = pdfb;
}

__global__ void hitShadowRay(

			path.isTerminate = true;
			return;
		}
		else if (path.isSingular) {
			auto emit = mtrl->baseColor;
			path.contrib += path.throughput * emit;
			path.isTerminate = true;
			return;
