code for assignment 3
[MicroTrace.git] / Triangle.hxx
index 320cca5..6abbe53 100644 (file)
@@ -6,11 +6,13 @@
 class Triangle : public Primitive
 {
 public:
-  Triangle(const Vec3f& a, const Vec3f& b, const Vec3f& c);
+  Triangle(const Vec3f& a, const Vec3f& b, const Vec3f& c, Shader* shader);
   virtual ~Triangle();
   
   virtual bool Intersect(Ray& ray);
+  virtual Vec3f GetNormal(Ray& ray);
 private:
   Vec3f m_a, m_b, m_c;
+  Vec3f m_n;
 };
 #endif
This page took 0.022448 seconds and 4 git commands to generate.