 		}
 		nodetex.writeByNum(&tmp[0], tmp.size());
 
-		static const int maxSamples = 5;
+		static const int maxSamples = 1;
 		static const int maxDepth = 5;
 		static const int rrDepth = 3;
 


	path.ray = camsample.r;
	path.throughput = aten::make_float3(1);
	path.contrib = aten::make_float3(0);
	path.mtrl = nullptr;
	path.lightcontrib = aten::make_float3(0);
	path.pdfb = 0.0f;
	path.isHit = false;
	path.isTerminate = false;
}

__global__ void hitTest(

				depth++;
			}
#endif
		}

		gather << <grid, block >> > (
		//gather << <1, 1 >> > (
			outputSurf,
			paths.ptr(),
			width, height,
			maxSamples);

		vtxparams.unbind();
		for (int i = 0; i < nodeparam.size(); i++) {
