obj loader refactor

This commit is contained in:
h4570
2022-08-08 21:37:51 +02:00
parent 599d44a491
commit a3e4ee8496
24 changed files with 4517 additions and 464 deletions
+3 -3
View File
@@ -9,17 +9,17 @@
*/
#include "states/game/debug_object.hpp"
#include <loaders/3d/tyrobj/tyrobj_loader.hpp>
#include <loaders/3d/obj_loader/obj_loader.hpp>
#include <file/file_utils.hpp>
using Tyra::Color;
using Tyra::FileUtils;
using Tyra::TyrobjLoader;
using Tyra::ObjLoader;
namespace Demo {
DebugObject::DebugObject(TextureRepository* repo) {
TyrobjLoader loader;
ObjLoader loader;
auto* data =
loader.load(FileUtils::fromCwd("game/models/debug.obj"), 1, .5F, true);
data->normalsEnabled = false;