feat: render sphere

This commit is contained in:
2025-10-08 18:36:55 +02:00
parent 42d5def07e
commit b989d74fca

View File

@ -27,7 +27,7 @@
class Game : public IApplication { class Game : public IApplication {
public: public:
Game() { Game() {
Object* lightObj = Object::LoadFile("./assets/cube.obj"); Object* lightObj = Object::LoadFile("./assets/sphere.obj");
const auto lightEntity = m_registry.create(); const auto lightEntity = m_registry.create();
m_registry.emplace<transform>(lightEntity, glm::vec3(-5.f, 5.f, 5.f), glm::vec3(0.f)); m_registry.emplace<transform>(lightEntity, glm::vec3(-5.f, 5.f, 5.f), glm::vec3(0.f));
m_registry.emplace<light>(lightEntity); m_registry.emplace<light>(lightEntity);