 #include "cuda/cudamemory.h"
 
 #include "aten4idaten.h"
+
+struct ShadowRay : public aten::ray {
+	aten::vec3 lightPos;
+	int targetLightId;
+
+	struct {
+		uint32_t isActive : 1;
+	};
+};
 
 struct Path {
 	aten::ray ray;

				AT_PRINTF("Cuda Kernel Err(raytracing) [%s]\n", cudaGetErrorString(err));
			}

			//checkCudaErrors(cudaDeviceSynchronize());

			depth++;

}

__global__ void raytracing(
	cudaSurfaceObject_t outSurface,
	Path* paths,
	ShadowRay* shadowRays,
	int width, int height,
	aten::ShapeParameter* shapes, int geomnum,
	aten::MaterialParameter* mtrls,
