3a18d6c488e6b7641c02f0e8b8908dbc0ea6ba37
[MicroTrace.git] / PhongShader.hxx
1 #ifndef PHONGSHADER_HXX
2 #define PHONGSHADER_HXX
3
4 #include "Shader.hxx"
5 #include "Scene.hxx"
6
7 class PhongShader : public Shader
8 {
9 public:
10 PhongShader(Scene* scene,
11 const Vec3f& ambient_color,
12 const Vec3f& diffuse_color,
13 const Vec3f& specular_color,
14 float ka,
15 float kd,
16 float ks,
17 float ke);
18 virtual ~PhongShader();
19
20 virtual Vec3f Shade(Ray& ray);
21 private:
22 PhongShader();
23
24 Vec3f m_ambient_color, m_diffuse_color, m_specular_color;
25 float m_ka, m_kd, m_ks, m_ke;
26 };
27 #endif
This page took 0.040848 seconds and 3 git commands to generate.