4 #include "Primitive.hxx"
7 class Sphere : public Primitive
10 Sphere(const Vec3f& center, float radius, Shader* shader);
13 virtual bool Intersect(Ray& ray);
14 virtual Vec3f GetNormal(Ray& ray);
15 virtual Box CalcBounds();
16 virtual bool InVoxel(const Box& box);