X-Git-Url: https://git.rohieb.name/MicroTrace.git/blobdiff_plain/fb7298729078489a4b3d27f5be46d664ccdad57a..0e3446ceb6fd6db0cb292671f37b46daaa2aed5b:/Triangle.cxx diff --git a/Triangle.cxx b/Triangle.cxx index ffddbc8..761abcb 100644 --- a/Triangle.cxx +++ b/Triangle.cxx @@ -2,8 +2,10 @@ Triangle::Triangle(const Vec3f& a, const Vec3f& b, - const Vec3f& c) - : m_a(a), + const Vec3f& c, + Shader* shader) + : Primitive(shader), + m_a(a), m_b(b), m_c(c) { @@ -49,3 +51,9 @@ Triangle::Intersect(Ray& ray) return true; } + +Vec3f +Triangle::GetNormal(Ray& ray) +{ + return Vec3f(); +}