cloudy-raytracer/shader/flatshader.h

20 lines
304 B
C
Raw Permalink Normal View History

2022-11-05 22:08:16 +01:00
#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