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