Removed unused fx
This commit is contained in:
@@ -2,7 +2,6 @@ package mindustry.core;
|
|||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.files.*;
|
import arc.files.*;
|
||||||
import arc.fx.*;
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
import arc.graphics.gl.*;
|
import arc.graphics.gl.*;
|
||||||
@@ -38,8 +37,6 @@ public class Renderer implements ApplicationListener{
|
|||||||
public float minZoom = 1.5f, maxZoom = 6f;
|
public float minZoom = 1.5f, maxZoom = 6f;
|
||||||
|
|
||||||
private @Nullable CoreBuild landCore;
|
private @Nullable CoreBuild landCore;
|
||||||
//TODO unused
|
|
||||||
private FxProcessor fx = new FxProcessor();
|
|
||||||
private Color clearColor = new Color(0f, 0f, 0f, 1f);
|
private Color clearColor = new Color(0f, 0f, 0f, 1f);
|
||||||
private float targetscale = Scl.scl(4);
|
private float targetscale = Scl.scl(4);
|
||||||
private float camerascale = targetscale;
|
private float camerascale = targetscale;
|
||||||
@@ -136,11 +133,6 @@ public class Renderer implements ApplicationListener{
|
|||||||
Events.fire(new DisposeEvent());
|
Events.fire(new DisposeEvent());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resize(int width, int height){
|
|
||||||
fx.resize(width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resume(){
|
public void resume(){
|
||||||
if(settings.getBool("bloom") && bloom != null){
|
if(settings.getBool("bloom") && bloom != null){
|
||||||
@@ -175,23 +167,6 @@ public class Renderer implements ApplicationListener{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void beginFx(){
|
|
||||||
if(!fx.hasEnabledEffects()) return;
|
|
||||||
|
|
||||||
Draw.flush();
|
|
||||||
fx.clear();
|
|
||||||
fx.begin();
|
|
||||||
}
|
|
||||||
|
|
||||||
void endFx(){
|
|
||||||
if(!fx.hasEnabledEffects()) return;
|
|
||||||
|
|
||||||
Draw.flush();
|
|
||||||
fx.end();
|
|
||||||
fx.applyEffects();
|
|
||||||
fx.render(0, 0, fx.getWidth(), fx.getHeight());
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateShake(float scale){
|
void updateShake(float scale){
|
||||||
if(shaketime > 0){
|
if(shaketime > 0){
|
||||||
float intensity = shakeIntensity * (settings.getInt("screenshake", 4) / 4f) * scale;
|
float intensity = shakeIntensity * (settings.getInt("screenshake", 4) / 4f) * scale;
|
||||||
|
|||||||
Reference in New Issue
Block a user