4 #include <mos/gfx/texture_2d.hpp> 14 template <
class T>
struct Slot {
15 Slot(
const T &value) : value(value) {}
16 Slot(
const Shared_texture_2D &texture) : texture(texture) {}
17 Slot(
const T &value,
const Shared_texture_2D &texture)
18 : value(value), texture(texture) {}
20 Shared_texture_2D texture = Shared_texture_2D();
24 Shared_texture_2D texture;
27 static auto load(
Assets &assets,
const std::string &path) ->
Material;
35 Albedo albedo{glm::vec3(0.0f)};
43 float index_of_refraction{1.5f};
44 float transmission{0.0f};
Physically based material.
Definition: material.hpp:12
Cache for faster loading of textures and meshes.
Definition: assets.hpp:20
Definition: material.hpp:14
Definition: assets.hpp:17
Definition: material.hpp:23