 	real envmapAvgIllum,
 	real envmapMultiplyer,
 	idaten::PathTracing::Path* paths,
-	const aten::ray* __restrict__ rays,
-	int width, int height)
+	const aten::ray* __restrict__ rays)
 {
 	const auto ix = blockIdx.x * blockDim.x + threadIdx.x;
 	const auto iy = blockIdx.y * blockDim.y + threadIdx.y;


		checkCudaKernel(shade);

#ifdef SEPARATE_SHADOWRAY_HITTEST
		hitShadowRay << <blockPerGrid, threadPerBlock >> > (
			//hitShadowRay << <1, 1 >> > (
			m_paths.ptr(),

			m_tileDomain,
			m_paths.ptr(),
			m_rays.ptr(),
			sample, maxSamples,
			m_frame,
			m_cam.ptr(),
