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