Files
PhotonMF/light.hpp

25 lines
337 B
C++
Raw Normal View History

2016-12-26 15:41:29 -04:00
#pragma once
#ifndef LIGHT_HPP
#define LIGHT_HPP
#include <glm/vec3.hpp>
#include "ray.hpp"
#include "material.hpp"
2016-12-26 19:14:21 -04:00
using glm::vec3;
2016-12-26 15:41:29 -04:00
class Light {
public:
2016-12-26 19:14:21 -04:00
vec3 m_position;
vec3 m_diffuse;
vec3 m_specular;
vec3 m_ambient;
2016-12-26 15:41:29 -04:00
virtual ~Light() { }
virtual vec3 shade(vec3 normal, Ray & r, Material & m) const = 0;
2016-12-26 15:41:29 -04:00
};
#endif