Renderer blend function fix

master
Allen Webster 2019-07-25 18:42:46 -07:00
parent f52738b5e6
commit 3b733a53e6
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ uniform sampler2DArray sampler;
out vec4 out_color;
void main(void)
{
out_color = fragment_color*texture(sampler, uvw).r;
out_color = vec4(fragment_color.xyz, fragment_color.a*texture(sampler, uvw).r);
}
)foo";
@ -203,7 +203,7 @@ gl_render(Render_Target *t, Arena *scratch){
glEnable(GL_SCISSOR_TEST);
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
////////////////////////////////