 		auto emit = aten::vec3(bg.x, bg.y, bg.z);
 
 		float misW = 1.0f;
-		if (!isFirstBounce) {
+		if (isFirstBounce) {
+			path.isKill = true;
+		}
+		else {
 			auto pdfLight = AT_NAME::ImageBasedLight::samplePdf(emit, envmapAvgIllum);
 			misW = path.pdfb / (pdfLight + path.pdfb);
 		}

	hitbools[idx] = isHit ? 1 : 0;
}

__global__ void shadeMiss(
	Path* paths,
	int width, int height)


	path.throughput = aten::vec3(1);
	path.pdfb = 0.0f;
	path.isTerminate = false;
	path.isSingular = false;

	path.samples += 1;

	// Accumulate value, so do not reset.
	//path.contrib = aten::vec3(0);
