2018-09-11 05:18:17 +00:00
|
|
|
#include "MySimpleShaderProgram.h"
|
|
|
|
|
|
|
|
#include "Util.h"
|
|
|
|
|
|
|
|
MySimpleShaderProgram::MySimpleShaderProgram()
|
2018-09-11 19:00:28 +00:00
|
|
|
: ShaderProgram(),
|
|
|
|
m_vertex_shader(Util::load_file(SHADER_PATH "MySimpleVS.glsl"), VERTEX_SHADER),
|
2018-09-11 16:10:11 +00:00
|
|
|
m_fragment_shader(Util::load_file(SHADER_PATH "MySimpleFS.glsl"), FRAGMENT_SHADER)
|
2018-09-11 05:18:17 +00:00
|
|
|
{
|
|
|
|
attach_shader(m_vertex_shader);
|
|
|
|
attach_shader(m_fragment_shader);
|
|
|
|
link();
|
|
|
|
}
|