3 #include <Engine/RaEngine.hpp>
12 #include <Engine/Data/RenderParameters.hpp>
38 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
47 explicit Material(
const std::string& instanceName,
48 const std::string& materialName,
49 MaterialAspect aspect = MaterialAspect::MAT_OPAQUE );
54 inline void setMaterialName( std::string newName ) { m_materialName = std::move( newName ); }
84 virtual bool isTransparent()
const;
97 std::list<std::string> getPropertyList()
const override;
120 std::string m_instanceName {};
125 bool m_isDirty {
true };
129 std::string m_materialName;
const MaterialAspect & getMaterialAspect() const
const std::string & getMaterialName() const
void setMaterialName(std::string newName)
virtual void setColoredByVertexAttrib(bool)
Makes the Material take its base color from the VERTEX_COLOR attribute of the rendered geometry.
void setMaterialAspect(const MaterialAspect &aspect)
virtual bool isColoredByVertexAttrib() const
Indicates if the material takes the VERTEX_COLOR attribute into account.
const std::string & getInstanceName() const