cloudy-raytracer/shader/flatshader.h
2022-10-28 09:31:13 +02:00

19 lines
304 B
C++

#ifndef FLATSHADER_H
#define FLATSHADER_H
#include "shader/shader.h"
class FlatShader : public Shader {
public:
// Constructor
FlatShader(Color const &objectColor);
// Shader functions
virtual Color shade(Scene const &scene, Ray const &ray) const;
protected:
Color objectColor;
};
#endif