help from pjrader1 on discord with FBO and Scissorstacks fixed FBO issue
This commit is contained in:
		@@ -17,13 +17,6 @@ public class VideoOptionsPage extends Page {
 | 
			
		||||
	private GraphicsOptions graphicsTable;
 | 
			
		||||
	public VideoOptionsPage(Skin skin, Preferences 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.setFadeScrollBars(false);
 | 
			
		||||
		scrollPane.setFillParent(true);
 | 
			
		||||
 
 | 
			
		||||
@@ -197,8 +197,8 @@ public class MainMenu extends ScreenAdapter implements TransitionAdapter {
 | 
			
		||||
		blurlvl = 5;
 | 
			
		||||
		if (gaussianBlurShader != null) {
 | 
			
		||||
			//Begin drawing a normal version of screen
 | 
			
		||||
			stage.getViewport().apply();
 | 
			
		||||
			normalBuffer.begin();
 | 
			
		||||
			stage.getViewport().apply();
 | 
			
		||||
			Gdx.gl.glClearColor(0.22f, 0f, 0f, 1f);
 | 
			
		||||
			Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
 | 
			
		||||
			stage.draw();
 | 
			
		||||
@@ -247,7 +247,7 @@ public class MainMenu extends ScreenAdapter implements TransitionAdapter {
 | 
			
		||||
			Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
 | 
			
		||||
			batch.setShader(combineShader);
 | 
			
		||||
			fboRegion.setTexture(normalBuffer.getColorBufferTexture());
 | 
			
		||||
			batch.draw(fboRegion, 0f, 0f, stage.getWidth(), stage.getHeight());
 | 
			
		||||
			batch.draw(fboRegion, 0f, 0f, fboSize, fboSize);
 | 
			
		||||
			batch.setShader(null);
 | 
			
		||||
			batch.end(); //STAGE BATCH ENDS HERE
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user