 						// inifinite light ̏ꍇ́AɂȂApdfLightɊ܂܂鋗ƑłH.
 						// ił̂ŁApdfLightɂ͋͊܂łȂj.
 						auto misW = pdfLight / (pdfb + pdfLight);
-#ifdef SEPARATE_SHADOWRAY_HITTEST
+
 						shShadowRays[threadIdx.x].lightcontrib[i] =
-#else
-						shPaths[threadIdx.x].contrib +=
-#endif
 							(misW * bsdf * emit * cosShadow / pdfLight) / lightSelectPdf / (float)idaten::SVGFPathTracing::ShadowRayNum;
 					}
 				}

							pdfb = pdfb * cosLight / dist2;

							auto misW = pdfLight / (pdfb + pdfLight);
#ifdef SEPARATE_SHADOWRAY_HITTEST
							shShadowRays[threadIdx.x].lightcontrib[i] =
#else
							shPaths[threadIdx.x].contrib +=
#endif
								(misW * (bsdf * emit * G) / pdfLight) / lightSelectPdf / (float)idaten::SVGFPathTracing::ShadowRayNum;;
						}
					}

	}
	AT_NAME::material::applyNormalMap(normalMap, orienting_normal, orienting_normal, rec.u, rec.v);

	shShadowRays[threadIdx.x].isActive = false;

	auto albedo = AT_NAME::sampleTexture(shMtrls[threadIdx.x].albedoMap, rec.u, rec.v, aten::vec3(1), bounce);

