specify vertex attribute position for rect shader "color" attribute
This commit is contained in:
1 parent
6df412b6c2
commit
35f1eee2a7
1 file changed
+2
-1
+2
-1
@@ -5,7 +5,8 @@ RectShader::RectShader()
|
||||
m_program = glcxx::Program::create(
|
||||
glcxx::Shader::create_from_file(GL_VERTEX_SHADER, "rect.v.glsl"),
|
||||
glcxx::Shader::create_from_file(GL_FRAGMENT_SHADER, "rect.f.glsl"),
|
||||
"coords", 0);
|
||||
"coords", 0,
|
||||
"color", 1);
|
||||
|
||||
m_uniforms.viewport_size = m_program->get_uniform_location("viewport_size");
|
||||
m_uniforms.position = m_program->get_uniform_location("position");
|
||||
|
||||
Reference in new issue
Block a user