2 #include <Engine/RaEngine.hpp>
7 #include <Core/Utils/Color.hpp>
8 #include <Engine/Data/Material.hpp>
9 #include <Engine/Data/Texture.hpp>
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
41 void updateGL()
override;
42 void updateFromParameters()
override;
43 bool isTransparent()
const override;
50 inline void setTexture(
Texture* texture );
57 inline Texture* getTexture()
const;
64 static void registerMaterial();
70 static void unregisterMaterial();
77 inline nlohmann::json getParametersMetadata()
const override;
87 Scalar m_scale { 1_ra };
90 Scalar m_stepsize { -1_ra };
93 Core::Transform m_modelToMedium { Core::Transform::Identity() };
102 void updateRenderingParameters();
105 static nlohmann::json s_parametersMetadata;
118 return s_parametersMetadata;
nlohmann::json getParametersMetadata() const override
void setTexture(Texture *texture)
Texture * getTexture() const