mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2024-11-28 16:58:56 +08:00
Display alpha value properly
The alpha of textures currently only displays as black and not as see through. This fixes that issue.
This commit is contained in:
parent
9ded760c78
commit
fea1ce4aaa
|
@ -58,6 +58,10 @@ namespace Strawberry.SDL2
|
||||||
SDL.GL_SetSwapInterval(1);
|
SDL.GL_SetSwapInterval(1);
|
||||||
GL.Init(=> SdlGetProcAddress);
|
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] (
|
shader = new Shader(String[2] (
|
||||||
// vertex shader
|
// vertex shader
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user