Skip to content
Snippets Groups Projects
BackgroundMaterial.h 498 B
Newer Older
Postea's avatar
Postea committed
#pragma once
Postea's avatar
Postea committed
#include "Material.h"

namespace material {
class BackgroundMaterial : public Material {
Yoel's avatar
Yoel committed
   public:
	BackgroundMaterial(const std::shared_ptr<util::Sampler>& texture);
	BackgroundMaterial(const util::Vec3& albedo);
Postea's avatar
Postea committed

Yoel's avatar
Yoel committed
	util::Vec3 albedo(float texel_x, float texel_y);
	util::Vec3 emission(float texel_x, float texel_y);
	util::Vec3 scattered_d(const util::Vec3& d, const util::Vec3& n);
	bool scatter();
Postea's avatar
Postea committed

Yoel's avatar
Yoel committed
   private:
	std::shared_ptr<util::Sampler> texture;
Yoel's avatar
Yoel committed
}  // namespace material