Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Object::Component::Material Struct Reference

Material structure. More...

#include <Material.hpp>

Public Types

using Id = entt::hashed_string

Public Member Functions

 Material ()=default
 ~Material ()=default
 Material (const Material &other)=default
Materialoperator= (const Material &other)=default
 Material (Material &&other)=default
Materialoperator= (Material &&other)=default

Public Attributes

std::string name
glm::vec3 ambient = glm::vec3(1.f)
glm::vec3 diffuse = glm::vec3(1.f)
glm::vec3 specular
glm::vec3 transmittance
glm::vec3 emission
float shininess
float ior
float dissolve
std::string diffuseTexName

Detailed Description

Material structure.

This structure is used to represent a material. It contains the properties of the material such as color, shininess, and texture. It is designed to be compatible with the TinyObjLoader material representation. See:

Member Typedef Documentation

◆ Id

using Object::Component::Material::Id = entt::hashed_string

Constructor & Destructor Documentation

◆ Material() [1/3]

Object::Component::Material::Material ( )
explicitdefault

◆ ~Material()

Object::Component::Material::~Material ( )
default

◆ Material() [2/3]

Object::Component::Material::Material ( const Material & other)
explicitdefault

◆ Material() [3/3]

Object::Component::Material::Material ( Material && other)
default

Member Function Documentation

◆ operator=() [1/2]

Material & Object::Component::Material::operator= ( const Material & other)
default

◆ operator=() [2/2]

Material & Object::Component::Material::operator= ( Material && other)
default

Member Data Documentation

◆ ambient

glm::vec3 Object::Component::Material::ambient = glm::vec3(1.f)

◆ diffuse

glm::vec3 Object::Component::Material::diffuse = glm::vec3(1.f)

◆ diffuseTexName

std::string Object::Component::Material::diffuseTexName

◆ dissolve

float Object::Component::Material::dissolve

◆ emission

glm::vec3 Object::Component::Material::emission

◆ ior

float Object::Component::Material::ior

◆ name

std::string Object::Component::Material::name

◆ shininess

float Object::Component::Material::shininess

◆ specular

glm::vec3 Object::Component::Material::specular

◆ transmittance

glm::vec3 Object::Component::Material::transmittance

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