File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 44
55#include < memory>
66#include < array>
7- #include < variant>
87
98// Material for a PBR pipeline
109class PBRMaterial {
@@ -44,16 +43,22 @@ class PBRMaterial {
4443unsigned int GetParameterTexture (const ParameterType parameter) const noexcept ;
4544glm::vec3 GetParameterColor (const ParameterType parameter) const noexcept ;
4645
47- // Gets active alpha texture/value from union
48- auto GetAlpha () const noexcept ;
46+ auto GetAlphaValue () const noexcept {
47+ return m_alpha;
48+ }
4949
50- private:
51- std::variant<unsigned int , float > m_alpha;
50+ auto GetAlphaMask () const noexcept {
51+ return m_alphaMaskTexture;
52+ }
5253
54+ private:
5355// unsigned int HeightMap;
5456
5557std::array<unsigned int , 5 > m_materialTextures;
5658std::array<glm::vec3, 5 > m_materialColors;
59+
60+ float m_alpha;
61+ unsigned int m_alphaMaskTexture;
5762};
5863
5964using PBRMaterialPtr = std::shared_ptr<PBRMaterial>;
You can’t perform that action at this time.
0 commit comments