obliterate unused variables
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
8764b44807
commit
73faf78d21
@ -1,5 +1,9 @@
|
|||||||
package electrosphere.client;
|
package electrosphere.client;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import org.joml.Vector3f;
|
||||||
|
|
||||||
import electrosphere.client.block.ClientBlockManager;
|
import electrosphere.client.block.ClientBlockManager;
|
||||||
import electrosphere.client.block.cells.ClientBlockCellManager;
|
import electrosphere.client.block.cells.ClientBlockCellManager;
|
||||||
import electrosphere.client.chemistry.ClientChemistryCollisionCallback;
|
import electrosphere.client.chemistry.ClientChemistryCollisionCallback;
|
||||||
@ -167,6 +171,11 @@ public class ClientState {
|
|||||||
*/
|
*/
|
||||||
public Entity targetContainer = null;
|
public Entity targetContainer = null;
|
||||||
|
|
||||||
|
//famous fuckin last words, but temporary solution
|
||||||
|
//global arraylist of values for the skybox colors
|
||||||
|
//edit(6/1/21): :upside_down_smile:
|
||||||
|
public ArrayList<Vector3f> skyboxColors = new ArrayList<Vector3f>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -2,10 +2,7 @@ package electrosphere.engine;
|
|||||||
|
|
||||||
import java.lang.management.ManagementFactory;
|
import java.lang.management.ManagementFactory;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.joml.Matrix4d;
|
import org.joml.Matrix4d;
|
||||||
import org.joml.Vector3f;
|
|
||||||
|
|
||||||
import electrosphere.audio.AudioEngine;
|
import electrosphere.audio.AudioEngine;
|
||||||
import electrosphere.audio.VirtualAudioSourceManager;
|
import electrosphere.audio.VirtualAudioSourceManager;
|
||||||
@ -18,7 +15,6 @@ import electrosphere.client.entity.particle.ParticleService;
|
|||||||
import electrosphere.client.fluid.cells.FluidCellManager;
|
import electrosphere.client.fluid.cells.FluidCellManager;
|
||||||
import electrosphere.client.terrain.cells.VoxelTextureAtlas;
|
import electrosphere.client.terrain.cells.VoxelTextureAtlas;
|
||||||
import electrosphere.client.ui.menu.WindowUtils;
|
import electrosphere.client.ui.menu.WindowUtils;
|
||||||
import electrosphere.collision.CollisionWorldData;
|
|
||||||
import electrosphere.controls.CameraHandler;
|
import electrosphere.controls.CameraHandler;
|
||||||
import electrosphere.controls.ControlCallback;
|
import electrosphere.controls.ControlCallback;
|
||||||
import electrosphere.controls.ControlHandler;
|
import electrosphere.controls.ControlHandler;
|
||||||
@ -30,7 +26,6 @@ import electrosphere.data.settings.UserSettings;
|
|||||||
import electrosphere.data.voxel.VoxelType;
|
import electrosphere.data.voxel.VoxelType;
|
||||||
import electrosphere.engine.assetmanager.AssetDataStrings;
|
import electrosphere.engine.assetmanager.AssetDataStrings;
|
||||||
import electrosphere.engine.assetmanager.AssetManager;
|
import electrosphere.engine.assetmanager.AssetManager;
|
||||||
import electrosphere.engine.loadingthreads.InitialAssetLoading;
|
|
||||||
import electrosphere.engine.os.fs.FileWatcherService;
|
import electrosphere.engine.os.fs.FileWatcherService;
|
||||||
import electrosphere.engine.profiler.Profiler;
|
import electrosphere.engine.profiler.Profiler;
|
||||||
import electrosphere.engine.signal.sync.MainThreadSignalService;
|
import electrosphere.engine.signal.sync.MainThreadSignalService;
|
||||||
@ -40,8 +35,6 @@ import electrosphere.net.monitor.NetMonitor;
|
|||||||
import electrosphere.renderer.RenderUtils;
|
import electrosphere.renderer.RenderUtils;
|
||||||
import electrosphere.renderer.RenderingEngine;
|
import electrosphere.renderer.RenderingEngine;
|
||||||
import electrosphere.renderer.actor.instance.InstanceManager;
|
import electrosphere.renderer.actor.instance.InstanceManager;
|
||||||
import electrosphere.renderer.light.PointLight;
|
|
||||||
import electrosphere.renderer.light.SpotLight;
|
|
||||||
import electrosphere.renderer.loading.ModelPretransforms;
|
import electrosphere.renderer.loading.ModelPretransforms;
|
||||||
import electrosphere.renderer.meshgen.FluidChunkModelGeneration;
|
import electrosphere.renderer.meshgen.FluidChunkModelGeneration;
|
||||||
import electrosphere.renderer.model.Material;
|
import electrosphere.renderer.model.Material;
|
||||||
@ -235,9 +228,6 @@ public class Globals {
|
|||||||
public static String imagePlaneModelID;
|
public static String imagePlaneModelID;
|
||||||
public static String solidPlaneModelID;
|
public static String solidPlaneModelID;
|
||||||
|
|
||||||
public static ArrayList<PointLight> lightPointListDefault;
|
|
||||||
public static SpotLight lightSpotDefault;
|
|
||||||
|
|
||||||
public static TextureMap textureMapDefault;
|
public static TextureMap textureMapDefault;
|
||||||
public static ModelPretransforms modelPretransforms;
|
public static ModelPretransforms modelPretransforms;
|
||||||
|
|
||||||
@ -283,14 +273,6 @@ public class Globals {
|
|||||||
|
|
||||||
//fluid cell manager
|
//fluid cell manager
|
||||||
public static FluidCellManager fluidCellManager;
|
public static FluidCellManager fluidCellManager;
|
||||||
|
|
||||||
//famous fuckin last words, but temporary solution
|
|
||||||
//global arraylist of values for the skybox colors
|
|
||||||
//edit(6/1/21): :upside_down_smile:
|
|
||||||
public static ArrayList<Vector3f> skyboxColors;
|
|
||||||
|
|
||||||
//thread for loading different game states
|
|
||||||
public static InitialAssetLoading initialAssetLoadingThread = new InitialAssetLoading();
|
|
||||||
|
|
||||||
//manager for all widgets currently being drawn to screen
|
//manager for all widgets currently being drawn to screen
|
||||||
public static ElementService elementService;
|
public static ElementService elementService;
|
||||||
@ -300,9 +282,6 @@ public class Globals {
|
|||||||
public static FileWatcherService fileWatcherService;
|
public static FileWatcherService fileWatcherService;
|
||||||
public static StructureScanningService structureScanningService;
|
public static StructureScanningService structureScanningService;
|
||||||
|
|
||||||
//collision world data
|
|
||||||
public static CollisionWorldData commonWorldData;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -376,8 +355,6 @@ public class Globals {
|
|||||||
//load in shader options map
|
//load in shader options map
|
||||||
shaderOptionMap = FileUtils.loadObjectFromAssetPath("Shaders/shaderoptions.json", ShaderOptionMap.class);
|
shaderOptionMap = FileUtils.loadObjectFromAssetPath("Shaders/shaderoptions.json", ShaderOptionMap.class);
|
||||||
shaderOptionMap.debug();
|
shaderOptionMap.debug();
|
||||||
//temporary hold for skybox colors
|
|
||||||
skyboxColors = new ArrayList<Vector3f>();
|
|
||||||
//load asset manager
|
//load asset manager
|
||||||
assetManager = new AssetManager();
|
assetManager = new AssetManager();
|
||||||
//game config
|
//game config
|
||||||
|
|||||||
@ -262,14 +262,14 @@ public class ClientLoading {
|
|||||||
float groundG = 20;
|
float groundG = 20;
|
||||||
float groundB = 20;
|
float groundB = 20;
|
||||||
|
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
|
|
||||||
//starry sky true skybox
|
//starry sky true skybox
|
||||||
Entity skybox = EntityCreationUtils.createClientSpatialEntity();
|
Entity skybox = EntityCreationUtils.createClientSpatialEntity();
|
||||||
|
|||||||
@ -127,14 +127,14 @@ public class LoadingUtils {
|
|||||||
float groundG = 100;
|
float groundG = 100;
|
||||||
float groundB = 150;
|
float groundB = 150;
|
||||||
|
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
Globals.clientState.skyboxColors.add(new Vector3f(skyR,skyG,skyB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
Globals.clientState.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user