Newer
Older
class BackgroundMaterial : public Material {
public:
BackgroundMaterial(const std::shared_ptr<util::Sampler>& texture);
BackgroundMaterial(const util::Vec3& albedo);
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();
std::shared_ptr<util::Sampler> texture;