Fixed simple textured shader.
This commit is contained in:
@ -21,11 +21,11 @@ void RenderManager::init() {
|
|||||||
this->lockSimpleTextured = this->shaderManager.lockShader<SimpleTexturedShader>();
|
this->lockSimpleTextured = this->shaderManager.lockShader<SimpleTexturedShader>();
|
||||||
this->simpleTexturedShader = this->shaderManager.getShader<SimpleTexturedShader>(this->lockSimpleTextured);
|
this->simpleTexturedShader = this->shaderManager.getShader<SimpleTexturedShader>(this->lockSimpleTextured);
|
||||||
|
|
||||||
// this->lockUIShaderProgram = this->shaderManager.lockShader<UIShader>();
|
this->lockUIShaderProgram = this->shaderManager.lockShader<UIShader>();
|
||||||
// this->uiShader = this->shaderManager.getShader<UIShader>(this->lockUIShaderProgram);
|
this->uiShader = this->shaderManager.getShader<UIShader>(this->lockUIShaderProgram);
|
||||||
|
|
||||||
// this->lockFontShader = this->shaderManager.lockShader<FontShader>();
|
this->lockFontShader = this->shaderManager.lockShader<FontShader>();
|
||||||
// this->fontShader = this->shaderManager.getShader<FontShader>(this->lockFontShader);
|
this->fontShader = this->shaderManager.getShader<FontShader>(this->lockFontShader);
|
||||||
this->renderPipeline.init();
|
this->renderPipeline.init();
|
||||||
assertNoGLError();
|
assertNoGLError();
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ void SimpleTexturedShader::compile() {
|
|||||||
{ "aTexCoord", 1 }
|
{ "aTexCoord", 1 }
|
||||||
},
|
},
|
||||||
// Vertex Shader
|
// Vertex Shader
|
||||||
"#version 300 es\n"
|
"#version 330 core\n"
|
||||||
"layout (location = 0) in vec3 aPos;\n"
|
"layout (location = 0) in vec3 aPos;\n"
|
||||||
"layout (location = 1) in vec2 aTexCoord;\n" +
|
"layout (location = 1) in vec2 aTexCoord;\n" +
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user