feat: render sphere
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user