help from pjrader1 on discord with FBO and Scissorstacks fixed FBO issue
This commit is contained in:
parent
f548c4828f
commit
6595c0fdb1
@ -17,13 +17,6 @@ public class VideoOptionsPage extends Page {
|
|||||||
private GraphicsOptions graphicsTable;
|
private GraphicsOptions graphicsTable;
|
||||||
public VideoOptionsPage(Skin skin, Preferences prefs) {
|
public VideoOptionsPage(Skin skin, Preferences prefs) {
|
||||||
graphicsTable = new GraphicsOptions(skin, prefs);
|
graphicsTable = new GraphicsOptions(skin, prefs);
|
||||||
graphicsTable.clear();
|
|
||||||
Pixmap pix = new Pixmap(4, 4, Format.RGBA8888);
|
|
||||||
pix.setColor(Color.WHITE);
|
|
||||||
pix.fill();
|
|
||||||
Texture texture = new Texture(pix);
|
|
||||||
Image image = new Image(texture);
|
|
||||||
graphicsTable.add(image).minHeight(4000).minWidth(2000);
|
|
||||||
scrollPane = new ScrollPane(graphicsTable, skin);
|
scrollPane = new ScrollPane(graphicsTable, skin);
|
||||||
scrollPane.setFadeScrollBars(false);
|
scrollPane.setFadeScrollBars(false);
|
||||||
scrollPane.setFillParent(true);
|
scrollPane.setFillParent(true);
|
||||||
|
@ -197,8 +197,8 @@ public class MainMenu extends ScreenAdapter implements TransitionAdapter {
|
|||||||
blurlvl = 5;
|
blurlvl = 5;
|
||||||
if (gaussianBlurShader != null) {
|
if (gaussianBlurShader != null) {
|
||||||
//Begin drawing a normal version of screen
|
//Begin drawing a normal version of screen
|
||||||
stage.getViewport().apply();
|
|
||||||
normalBuffer.begin();
|
normalBuffer.begin();
|
||||||
|
stage.getViewport().apply();
|
||||||
Gdx.gl.glClearColor(0.22f, 0f, 0f, 1f);
|
Gdx.gl.glClearColor(0.22f, 0f, 0f, 1f);
|
||||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
||||||
stage.draw();
|
stage.draw();
|
||||||
@ -247,7 +247,7 @@ public class MainMenu extends ScreenAdapter implements TransitionAdapter {
|
|||||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
||||||
batch.setShader(combineShader);
|
batch.setShader(combineShader);
|
||||||
fboRegion.setTexture(normalBuffer.getColorBufferTexture());
|
fboRegion.setTexture(normalBuffer.getColorBufferTexture());
|
||||||
batch.draw(fboRegion, 0f, 0f, stage.getWidth(), stage.getHeight());
|
batch.draw(fboRegion, 0f, 0f, fboSize, fboSize);
|
||||||
batch.setShader(null);
|
batch.setShader(null);
|
||||||
batch.end(); //STAGE BATCH ENDS HERE
|
batch.end(); //STAGE BATCH ENDS HERE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user