 __global__ void shade(
 	cudaSurfaceObject_t outSurface,
 	Path* paths,
-	ray* shadowRays,
+	ShadowRay* shadowRays,
 	int width, int height,
 	int depth, int rrDepth,
 	aten::ShapeParameter* shapes, int geomnum,


#include "aten4idaten.h"

struct ray : public aten::ray {
	aten::vec3 lightPos;
	aten::vec3 lightcontrib;
	int targetLightId;


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