erebus
view liberebus/src/brdf.h @ 4:93894c232d65
more changes across the board
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 29 Apr 2014 07:38:40 +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_