Attempt at fixing mediump precision issues

This commit is contained in:
Anuken
2020-11-03 10:59:16 -05:00
parent 6cde363d77
commit 797d6eaa4a
8 changed files with 35 additions and 14 deletions

View File

@@ -45,6 +45,7 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
//debug GL information
Log.info("[GL] Version: @", graphics.getGLVersion());
Log.info("[GL] Max texture size: @", Gl.getInt(Gl.maxTextureSize));
Log.info("[GL] Max vert/frag shader FP precision: @ / @", Gl.getShaderPrecision(Gl.vertexShader, Gl.highFloat), Gl.getShaderPrecision(Gl.fragmentShader, Gl.highFloat));
Log.info("[GL] Using @ context.", gl30 != null ? "OpenGL 3" : "OpenGL 2");
Log.info("[JAVA] Version: @", System.getProperty("java.version"));

View File

@@ -1330,7 +1330,7 @@ public class Blocks implements ContentList{
//region storage
coreShard = new CoreBlock("core-shard"){{
requirements(Category.effect, BuildVisibility.editorOnly, with(Items.copper, 2000, Items.lead, 1000));
requirements(Category.effect, BuildVisibility.editorOnly, with(Items.copper, 1500, Items.lead, 1000));
alwaysUnlocked = true;
unitType = UnitTypes.alpha;

View File

@@ -202,7 +202,6 @@ public class UnitType extends UnlockableContent{
stats.add(Stat.itemCapacity, itemCapacity);
stats.add(Stat.range, (int)(maxRange / tilesize), StatUnit.blocks);
stats.add(Stat.commandLimit, commandLimit);
//TODO abilities, maybe try something like DPS
if(abilities.any()){
var unique = new ObjectSet<String>();
@@ -249,7 +248,7 @@ public class UnitType extends UnlockableContent{
singleTarget = weapons.size <= 1;
if(itemCapacity < 0){
itemCapacity = Math.max(Mathf.round(hitSize * 4, 10), 10);
itemCapacity = Math.max(Mathf.round((int)(hitSize * 4.3), 10), 10);
}
//set up default range

View File

@@ -412,7 +412,7 @@ public class SettingsMenuDialog extends SettingsDialog{
}
});
graphics.checkPref("linear", !mobile, b -> {
graphics.checkPref("linear", true, b -> {
for(Texture tex : Core.atlas.getTextures()){
TextureFilter filter = b ? TextureFilter.linear : TextureFilter.nearest;
tex.setFilter(filter, filter);