cloudy-raytracer/shader/phongshader.h
2022-11-25 14:58:29 +01:00

25 lines
537 B
C++

#ifndef PHONGSHADER_H
#define PHONGSHADER_H
#include "shader/shader.h"
class PhongShader : public Shader {
public:
// Constructor
PhongShader(Color const &diffuseColor, float diffuseCoefficient, Color const &specularColor,
float specularCoefficient, float shininessExponent);
// Shader functions
Color shade(Scene const &scene, Ray const &ray) const override;
private:
Color diffuseColor;
float diffuseCoefficient;
Color specularColor;
float specularCoefficient;
float shininessExponent;
};
#endif