 
 __host__ __device__ bool intersectSphere(
 	const Sphere* sphere,
-	const Ray* r, hitrecord* rec)
-{
-	const float3 p_o = sphere->center - r->org;
+	const aten::ray* r, hitrecord* rec)
+{
+	const aten::vec3 p_o = sphere->center - r->org;
 	const float b = dot(p_o, r->dir);
 
 	// ʎ.

}

static Sphere g_spheres[] = {
	Sphere(make_float3(0, 0, -10), 1.0, 0),
	Sphere(make_float3(3, 0, -10), 1.0, 1),
};

void renderRayTracing(

struct hitrecord {
	float t{ AT_MATH_INF };

	aten::vec3 p;

	aten::vec3 normal;

	int mtrlid;

