erebus
view liberebus/src/brdf.h @ 14:f97dd1877f5f
testing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 24 May 2014 21:56:04 +0300 |
parents | 474a0244f57d |
children | e49f4d7ad04c |
line source
1 #ifndef BRDF_H_
2 #define BRDF_H_
4 #include "texture.h"
6 class Reflectance {
7 public:
8 Reflectance();
9 virtual ~Reflectance() = default;
11 virtual Vector3 sample_dir(const Vector3 &norm, const Vector3 &outdir) const = 0;
12 virtual float sample(const Vector3 &norm, const Vector3 &outdir, Vector3 *indir) const;
13 virtual float eval(const Vector3 &norm, const Vector3 &outdir, const Vector3 &indir) const = 0;
14 };
16 class LambertRefl : public Reflectance {
17 public:
18 Vector3 sample_dir(const Vector3 &norm, const Vector3 &outdir) const override;
19 float eval(const Vector3 &norm, const Vector3 &outdir, const Vector3 &indir) const override;
20 };
22 #endif // BRDF_H_