mmh, there was something missing for assignment 3
[MicroTrace.git] / PointLight.cxx
diff --git a/PointLight.cxx b/PointLight.cxx
new file mode 100644 (file)
index 0000000..1ce5f0b
--- /dev/null
@@ -0,0 +1,40 @@
+#include "PointLight.hxx"
+
+PointLight::PointLight(Scene* scene, const Vec3f& pos, const Vec3f& intensity)
+  : Light(scene),
+    m_pos(pos),
+    m_intensity(intensity)
+{
+}
+
+PointLight::~PointLight()
+{
+}
+
+PointLight::PointLight()
+  : Light(0),
+    m_pos(Vec3f()),
+    m_intensity(Vec3f())
+{
+}
+
+bool
+PointLight::Illuminate(Ray& ray, Vec3f& intensity)
+{
+
+  return false;
+}
+
+const Vec3f&
+PointLight::position() const
+{
+  return m_pos;
+}
+
+const Vec3f&
+PointLight::intensity() const
+{
+  return m_intensity;
+}
+
+
This page took 0.027486 seconds and 4 git commands to generate.