StevEngine
StevEngine is a customizable C++ game engine.
|
Material properties for rendering. More...
#include <visuals/Material.hpp>
Public Member Functions | |
Material (Utilities::Color color=Utilities::Color(), Utilities::Vector3 ambient=Utilities::Vector3(1.0), Utilities::Vector3 diffuse=Utilities::Vector3(1.0), Utilities::Vector3 specular=Utilities::Vector3(1.0), float shininess=32.0, const Visuals::Texture &albedoData=Visuals::Texture::empty, const Visuals::Texture &normalData=Visuals::Texture::empty) | |
Create material with properties. | |
Material (const Material &other) | |
Copy constructor. | |
const Visuals::Texture & | GetAlbedo () const |
Get albedo/color texture. | |
void | SetAlbedo (const Texture &textureData) |
Set albedo/color texture. | |
void | FreeAlbedo () |
Free albedo texture resources. | |
const Visuals::Texture & | GetNormal () const |
Get normal map texture. | |
void | SetNormal (const Texture &normalData) |
Set normal map texture. | |
void | FreeNormal () |
Free normal map resources. | |
Public Attributes | |
Utilities::Color | color |
Base color tint. | |
Utilities::Vector3 | ambient |
Ambient light reflection coefficient. | |
Utilities::Vector3 | diffuse |
Diffuse light reflection coefficient. | |
Utilities::Vector3 | specular |
Specular light reflection coefficient. | |
float | shininess |
Specular highlight size/sharpness. | |
Material properties for rendering.
Defines surface properties including color, textures, and light interaction. Controls how objects appear when rendered.
StevEngine::Visuals::Material::Material | ( | Utilities::Color | color = Utilities::Color(), |
Utilities::Vector3 | ambient = Utilities::Vector3(1.0), | ||
Utilities::Vector3 | diffuse = Utilities::Vector3(1.0), | ||
Utilities::Vector3 | specular = Utilities::Vector3(1.0), | ||
float | shininess = 32.0, | ||
const Visuals::Texture & | albedoData = Visuals::Texture::empty, | ||
const Visuals::Texture & | normalData = Visuals::Texture::empty ) |
Create material with properties.
color | Base color tint |
ambient | Ambient light reflection |
diffuse | Diffuse light reflection |
specular | Specular light reflection |
shininess | Specular highlight size |
albedoData | Albedo/color texture |
normalData | Normal map texture |
StevEngine::Visuals::Material::Material | ( | const Material & | other | ) |
Copy constructor.
other | Material to copy |
|
inline |
Get albedo/color texture.
|
inline |
Get normal map texture.
void StevEngine::Visuals::Material::SetAlbedo | ( | const Texture & | textureData | ) |
Set albedo/color texture.
textureData | New albedo texture |
void StevEngine::Visuals::Material::SetNormal | ( | const Texture & | normalData | ) |
Set normal map texture.
normalData | New normal map |