Merge pull request #3 from Booklordofthedings/patch-1

Display alpha value properly
This commit is contained in:
Maddy Thorson 2020-11-09 10:39:04 -08:00 committed by GitHub
commit 937479c09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,10 @@ namespace Strawberry.SDL2
SDL.GL_SetSwapInterval(1);
GL.Init(=> SdlGetProcAddress);
//We need to activate this somehwere to make use of the alpha layer
GL.glEnable(GL.GL_BLEND);
GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
shader = new Shader(String[2] (
// vertex shader
"""