21 lines
422 B
C++
21 lines
422 B
C++
#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
|