 
 #include "aten4idaten.h"
 
-struct ray : public aten::ray {
+struct ShadowRay : public aten::ray {
 	aten::vec3 lightPos;
 	aten::vec3 lightcontrib;
 	int targetLightId;


__global__ void hitShadowRay(
	Path* paths,
	ray* shadowRays,
	int width, int height,
	aten::ShapeParameter* shapes, int geomnum,
	aten::MaterialParameter* mtrls,

		idaten::TypedCudaMemory<Path> paths;
		paths.init(width * height);

		idaten::TypedCudaMemory<ShadowRay> shadowRays;
		shadowRays.init(width * height);

		CudaGLResourceMap rscmap(&glimg);
