Skip to content
Snippets Groups Projects
Constant.h 279 B
Newer Older
Postea's avatar
Postea committed
#pragma once

#include "../../sampling/Sampler.h"
Postea's avatar
Postea committed

namespace material {
class Constant : public util::Sampler {
Yoel's avatar
Yoel committed
   public:
	Constant(const util::Vec3& albedo);
	util::Vec3 color(float x, float y) const override;

   private:
	const util::Vec3 albedo;
Yoel's avatar
Yoel committed
}  // namespace material