cloudy-raytracer/shader/refractionshader.h

22 lines
401 B
C
Raw Normal View History

2022-11-11 14:39:48 +01:00
#ifndef REFRACTIONSHADER_H
#define REFRACTIONSHADER_H
#include "shader/shader.h"
class RefractionShader : public Shader {
public:
// Constructor
RefractionShader(float indexInside, float indexOutside);
// Shader functions
Color shade(Scene const &scene, Ray const &ray) const override;
bool isTransparent() const override;
private:
float indexInside;
float indexOutside;
};
#endif