Made emscripten work a bit better
This commit is contained in:
@ -64,7 +64,7 @@ namespace Dawn {
|
||||
*/
|
||||
shaderbufferlocation_t getBufferLocationByName(std::string name);
|
||||
|
||||
virtual void compile() = 0;
|
||||
virtual void compile() override = 0;
|
||||
void bind() override;
|
||||
void setParameterBuffer(shaderbufferlocation_t location, shaderbufferslot_t slot);
|
||||
void setMatrix(shaderparameter_t parameter, glm::mat4 matrix) override;
|
||||
|
@ -15,7 +15,7 @@ void SimpleTexturedShader::compile() {
|
||||
{ "aTexCoord", 1 }
|
||||
},
|
||||
// Vertex Shader
|
||||
"#version 330 core\n"
|
||||
"#version 300 es\n"
|
||||
"layout (location = 0) in vec3 aPos;\n"
|
||||
"layout (location = 1) in vec2 aTexCoord;\n" +
|
||||
|
||||
@ -91,6 +91,5 @@ void SimpleTexturedShader::compile() {
|
||||
this->paramColor = this->getParameterByName("u_Color");
|
||||
this->paramTexture = this->getParameterByName("u_Text");
|
||||
this->paramHasTexture = this->getParameterByName("u_HasTexture");
|
||||
|
||||
this->bufferRenderPipeline = this->getBufferLocationByName(RenderPipelineShaderBuffer::getShaderUniformName());
|
||||
}
|
Reference in New Issue
Block a user