Newer
Older
BackgroundMaterial::BackgroundMaterial(
const std::shared_ptr<util::Sampler>& texture)
: texture(texture) {
BackgroundMaterial::BackgroundMaterial(const util::Vec3& albedo)
util::Vec3 BackgroundMaterial::albedo(float texel_x, float texel_y) const {
util::Vec3 BackgroundMaterial::emission(float texel_x, float texel_y) const {
util::Vec3 BackgroundMaterial::scattered_d(const util::Vec3& d,
const util::Vec3& n) const {
bool BackgroundMaterial::scatter() const {