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

namespace material {
class BackgroundMaterial : public Material {
public:
    BackgroundMaterial(const std::shared_ptr<util::Sampler>& texture);
    BackgroundMaterial(const util::Vec3& albedo);
Postea's avatar
Postea 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

    std::shared_ptr<util::Sampler> texture;