obj loader refactor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user