Falcon
Public Member Functions | Public Attributes | List of all members
Material Class Reference

#include <Material.h>

Public Member Functions

void Bind ()
 
void SetShader (Shader *shader)
 
const std::string & GetPath ()
 
void SetPath (const std::string &path)
 
const std::string & GetTexturePath (u32 idx)
 
void SetTexturePath (const std::string &path, u32 idx)
 
 ~Material ()
 

Public Attributes

Texture m_albedoTex
 
Texture m_roughnessTex
 
Texture m_normalTex
 
Texture m_metallicTex
 
Texture m_aoTex
 
glm::vec3 m_albedo = glm::vec3(1.0f, 1.0f, 1.0f)
 
float m_roughness = 1.0f
 
glm::vec3 m_normal = glm::vec3(0.5f, 0.5, 1.0f)
 
float m_metallic = 0.0f
 
float m_ao = 0.0f
 
Shaderm_shader = nullptr
 

Constructor & Destructor Documentation

◆ ~Material()

Material::~Material ( )

Member Function Documentation

◆ Bind()

void Material::Bind ( )

Binds a material for rendering

◆ GetPath()

const std::string& Material::GetPath ( )
inline

◆ GetTexturePath()

const std::string& Material::GetTexturePath ( u32  idx)
inline

◆ SetPath()

void Material::SetPath ( const std::string &  path)
inline

◆ SetShader()

void Material::SetShader ( Shader shader)
inline

◆ SetTexturePath()

void Material::SetTexturePath ( const std::string &  path,
u32  idx 
)
inline

Member Data Documentation

◆ m_albedo

glm::vec3 Material::m_albedo = glm::vec3(1.0f, 1.0f, 1.0f)

◆ m_albedoTex

Texture Material::m_albedoTex

◆ m_ao

float Material::m_ao = 0.0f

◆ m_aoTex

Texture Material::m_aoTex

◆ m_metallic

float Material::m_metallic = 0.0f

◆ m_metallicTex

Texture Material::m_metallicTex

◆ m_normal

glm::vec3 Material::m_normal = glm::vec3(0.5f, 0.5, 1.0f)

◆ m_normalTex

Texture Material::m_normalTex

◆ m_roughness

float Material::m_roughness = 1.0f

◆ m_roughnessTex

Texture Material::m_roughnessTex

◆ m_shader

Shader* Material::m_shader = nullptr

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