Fixed bloom resizing improperly
This commit is contained in:
@@ -54,7 +54,7 @@ public class Renderer implements ApplicationListener{
|
||||
public void init(){
|
||||
planets = new PlanetRenderer();
|
||||
|
||||
if(settings.getBool("bloom")){
|
||||
if(settings.getBool("bloom", !ios)){
|
||||
setupBloom();
|
||||
}
|
||||
}
|
||||
@@ -121,10 +121,6 @@ public class Renderer implements ApplicationListener{
|
||||
|
||||
@Override
|
||||
public void resize(int width, int height){
|
||||
if(settings.getBool("bloom")){
|
||||
setupBloom();
|
||||
}
|
||||
|
||||
fx.resize(width, height);
|
||||
}
|
||||
|
||||
@@ -240,6 +236,7 @@ public class Renderer implements ApplicationListener{
|
||||
}
|
||||
|
||||
if(bloom != null){
|
||||
bloom.resize(graphics.getWidth() / 4, graphics.getHeight() / 4);
|
||||
Draw.draw(Layer.bullet - 0.01f, bloom::capture);
|
||||
Draw.draw(Layer.effect + 0.01f, bloom::render);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user