Skip to content

Commit

Permalink
lub follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokeiburu committed Dec 6, 2023
1 parent 483b183 commit be896d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browedit/components/LubRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void LubRenderer::render()
}

shader->setUniform(LubShader::Uniforms::billboard_off, (bool)lubEffect->billboard_off);
shader->setUniform(LubShader::Uniforms::color, lubEffect->color);
shader->setUniform(LubShader::Uniforms::color, glm::vec4(lubEffect->color.r, lubEffect->color.g, lubEffect->color.b, 1.0f));

glBindBuffer(GL_ARRAY_BUFFER, 0);
if (texture)
Expand Down
2 changes: 1 addition & 1 deletion data/shaders/lub.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ void main()
{
vec4 outColor = texture2D(s_texture, texCoord);
outColor *= color;
outColor.a = alpha;
outColor.a *= alpha;
fragColor = outColor;
}

0 comments on commit be896d8

Please sign in to comment.