prolonged alpha blending issue seemingly fixed?

at least it's partially fixed...
This commit is contained in:
minjaesong
2019-01-07 17:34:47 +09:00
parent 5fefb38383
commit adf45b1f68
9 changed files with 46 additions and 62 deletions

View File

@@ -26,6 +26,8 @@ import java.io.IOException;
import java.util.Arrays;
import java.util.Random;
import static net.torvald.terrarum.TerrarumKt.gdxClearAndSetBlend;
/**
* The framework's Application Loader
*
@@ -245,12 +247,7 @@ public class AppLoader implements ApplicationListener {
FrameBufferManager.begin(renderFBO);
Gdx.gl.glClearColor(.094f, .094f, .094f, 0f);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
Gdx.gl.glEnable(GL20.GL_TEXTURE_2D);
Gdx.gl.glEnable(GL20.GL_BLEND);
Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
Gdx.gl.glBlendEquation(GL20.GL_FUNC_ADD);
gdxClearAndSetBlend(.094f, .094f, .094f, 0f);
FrameBufferManager.end();