#include "Material.h" Material::Material( DirectX::XMFLOAT4 _tint, float _roughness, std::shared_ptr _vertexShader, std::shared_ptr _pixelShader) { tint = _tint; roughness = _roughness; vertexShader = _vertexShader; pixelShader = _pixelShader; } Material::~Material() { } DirectX::XMFLOAT4 Material::GetTint() { return tint; } float Material::GetRoughness() { return roughness; } std::shared_ptr Material::GetVertexShader() { return vertexShader; } std::shared_ptr Material::GetPixelShader() { return pixelShader; } void Material::SetTint(DirectX::XMFLOAT4 _tint) { tint = _tint; } void Material::SetRoughness(float _roughness) { if (_roughness > 1) { roughness = 1; } else if (_roughness < 0) { roughness = 0; } else { roughness = _roughness; } } void Material::SetVertexShader(std::shared_ptr _vertexShader) { vertexShader = _vertexShader; } void Material::SetPixelShader(std::shared_ptr _pixelShader) { pixelShader = _pixelShader; }