cloudy-raytracer/shader/phongshader.h

26 lines
537 B
C
Raw Permalink Normal View History

2022-11-25 14:58:29 +01:00
#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