Lighting was working the entire time, it was just the texture smh

This commit is contained in:
SeanOMik 2021-12-09 15:42:20 -05:00
parent ed08a78fb6
commit 18f50d5420
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ int main(int argc, char *argv[]) {
auto light = std::make_shared<simpleengine::gfx::Light>(core_shader, glm::vec3(0.f, 0.f, -20.f), glm::vec3(1.f, 1.f, 1.f)); auto light = std::make_shared<simpleengine::gfx::Light>(core_shader, glm::vec3(0.f, 0.f, -20.f), glm::vec3(1.f, 1.f, 1.f));
game.add_event(light); game.add_event(light);
simpleengine::gfx::Texture white_texture("resources/white_texture.jpg"); simpleengine::gfx::Texture white_texture("resources/white_texture.png");
auto dragon = std::make_shared<simpleengine::objects_3d::ObjModel>(game.get_window(), core_shader, white_texture, "resources/dragon.obj"); auto dragon = std::make_shared<simpleengine::objects_3d::ObjModel>(game.get_window(), core_shader, white_texture, "resources/dragon.obj");
dragon->translate(0.f, -5.f, -25.f); dragon->translate(0.f, -5.f, -25.f);
game.add_event(dragon); game.add_event(dragon);