Skip to content

Commit

Permalink
Merge pull request #20 from jcarlos0305/feature/release_hotfix
Browse files Browse the repository at this point in the history
Moved shaders and updated the paths
  • Loading branch information
jcarlos0305 committed Nov 29, 2020
2 parents a289825 + c31069c commit ee5e85c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Game/imgui.ini
Expand Up @@ -14,8 +14,8 @@ Size=450,333
Collapsed=0

[Window][About]
Pos=85,141
Size=321,180
Pos=608,198
Size=321,216
Collapsed=0

[Window][Configuration]
Expand Down
3 changes: 1 addition & 2 deletions ModuleModel.cpp
Expand Up @@ -35,7 +35,7 @@ void ModuleModel::Load(const char* file_path) {

if (strcmp(file_ext, ".fbx") == 0) {
LOG("Loading model %s", file_path);
Load(file_path, "../vertex.glsl", "../fragment.glsl");
Load(file_path, "assets/vertex.glsl", "assets/fragment.glsl");
}
else if (strcmp(file_ext, ".png") == 0 || strcmp(file_ext, ".dds") == 0 || strcmp(file_ext, ".jpg") == 0 || strcmp(file_ext, ".jpeg") == 0) {
LOG("Loading texture %s", file_path);
Expand All @@ -54,7 +54,6 @@ void ModuleModel::Load(const char* file_path) {

void ModuleModel::Load(const char* model_path, const char* vertex_shader_path, const char* fragment_shader_path) {
unsigned int program = CreateProgram(vertex_shader_path, fragment_shader_path);

const aiScene* scene = aiImportFile(model_path, aiProcessPreset_TargetRealtime_MaxQuality);
if (program && scene) {
LOG("Shaders program created successfully!\n");
Expand Down
2 changes: 1 addition & 1 deletion ModuleRender.cpp
Expand Up @@ -31,7 +31,7 @@ bool ModuleRender::Init() {
glFrontFace(GL_CCW);

/* Load the baker's house with the shaders */
App->model->Load("assets/BakerHouse.fbx", "../vertex.glsl", "../fragment.glsl");
App->model->Load("assets/BakerHouse.fbx", "assets/vertex.glsl", "assets/fragment.glsl");

glGenFramebuffers(1, &fbo);

Expand Down

0 comments on commit ee5e85c

Please sign in to comment.