charcoal/OpenGLEngine/MyBasicShaderProgram.cpp
Elipzer 9d37a3007f Add Relative Shader Directory Preprocessor to .sln
This allows computers that do not have my personal directory setup
to use visual studio macros to get to the shader dir.
2018-09-11 12:10:11 -04:00

13 lines
424 B
C++

#include "MyBasicShaderProgram.h"
#include "Util.h"
MyBasicShaderProgram::MyBasicShaderProgram()
// TEMP Hardcode in the path. (Should Use Relative Path to General Shader Dir)
: m_vertex_shader(Util::load_file(SHADER_PATH "MyBasicVS.glsl"), VERTEX_SHADER),
m_fragment_shader(Util::load_file(SHADER_PATH "MyBasicFS.glsl"), FRAGMENT_SHADER)
{
attach_shader(m_vertex_shader);
attach_shader(m_fragment_shader);
link();
}