feat: add lights

This commit is contained in:
2025-10-14 11:45:46 +02:00
parent c34d3f803f
commit 50a4f56e75
14 changed files with 355 additions and 10 deletions

View File

@@ -3,6 +3,8 @@
#include <memory>
#include "../lib/glm/glm.hpp"
class Shader;
class Texture;
@@ -25,11 +27,31 @@ public:
texture_ = tex;
}
[[nodiscard]] const glm::vec4& color() const
{
return color_;
}
void set_color(const glm::vec4& color)
{
color_ = color;
}
[[nodiscard]] uint8_t shininess() const
{
return shininess_;
}
void set_shininess(uint8_t shininess)
{
shininess_ = shininess;
}
void prepare();
private:
std::shared_ptr<Shader> shader_;
std::shared_ptr<Texture> texture_;
glm::vec4 color_;
uint8_t shininess_;
};
#endif // MATERIAL_H_