MOS
Classes | Public Types | Static Public Member Functions | Public Attributes | List of all members
mos::gfx::Material Class Referencefinal

Physically based material. More...

#include <material.hpp>

Classes

struct  Normal
 
struct  Slot
 

Public Types

using Albedo = Slot< glm::vec3 >
 
using Roughness = Slot< float >
 
using Metallic = Slot< float >
 
using Emission = Slot< glm::vec3 >
 
using Ambient_occlusion = Slot< float >
 

Static Public Member Functions

static auto load (Assets &assets, const std::string &path) -> Material
 

Public Attributes

Albedo albedo {glm::vec3(0.0f)}
 
Metallic metallic {0.0f}
 
Roughness roughness {1.0f}
 
Emission emission {glm::vec3(0.0f)}
 
Ambient_occlusion ambient_occlusion {1.0f}
 
Normal normal {}
 
float alpha {1.0f}
 
float index_of_refraction {1.5f}
 
float transmission {0.0f}
 

Detailed Description

Physically based material.


The documentation for this class was generated from the following file: