cloudy-raytracer/shader/depthshader.h

22 lines
422 B
C
Raw Normal View History

2023-01-23 04:09:48 +01:00
#ifndef CG1_TRACER_DEPTHSHADER_H
#define CG1_TRACER_DEPTHSHADER_H
#include "shader/shader.h"
class DepthShader : public Shader {
public:
DepthShader(Color const &nearColor = Color(1, 1, 1), Color const &farColor = Color(0, 0, 0));
// Shader functions
Color shade(Scene const &scene, Ray const &ray) const override;
private:
Color nearColor;
Color farColor;
};
#endif //CG1_TRACER_DEPTHSHADER_H