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

@ -1176,6 +1176,10 @@ block.payload-router.name = Payload Router
block.disassembler.name = Disassembler
block.silicon-crucible.name = Silicon Crucible
block.overdrive-dome.name = Overdrive Dome
#experimental, may be removed
block.block-forge.name = Block Forge
block.block-loader.name = Block Loader
block.block-unloader.name = Block Unloader
block.switch.name = Switch
block.micro-processor.name = Micro Processor

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);

View file

@ -9,11 +9,16 @@ public enum SAchievement{
win10Attack(SStat.attacksWon, 10),
win10PvP(SStat.pvpsWon, 10),
defeatAttack5Waves,
//TODO
launch30Times(SStat.timesLaunched, 30),
//TODO
captureBackground,
//TODO
survive100Waves(SStat.maxWavesSurvived, 100),
survive500Waves(SStat.maxWavesSurvived, 500),
researchAll,
useAllMechs(SStat.zoneMechsUsed, 6),
//TODO
useAllUnits,
shockWetEnemy,
killEnemyPhaseWall,
researchRouter,
@ -24,8 +29,9 @@ public enum SAchievement{
downloadMapWorkshop,
publishMap(SStat.mapsPublished, 1),
defeatBoss(SStat.bossesDefeated, 1),
unlockAllZones,
configAllZones,
//TODO
captureAllSectors,
//configAllZones,
drop10kitems,
powerupImpactReactor,
obtainThorium,
@ -37,16 +43,25 @@ public enum SAchievement{
active10Phantoms,
active50Crawlers,
build1000Units,
earnSRank,
earnSSRank,
//TODO
buildAllUnits,
//TODO
activeAllT5,
//TODO
//earnSRank,
//earnSSRank,
dieExclusion,
drown,
fillCoreAllCampaign,
hostServer10(SStat.maxPlayersServer, 10),
buildMeltdownSpectre,
buildMeltdownSpectreForeshadow,
launchItemPad,
skipLaunching2Death,
//skipLaunching2Death,
chainRouters,
//TODO
becomeRouter,
//TODO
save20Schematics,
survive10WavesNoBlocks,
useFlameAmmo,
coolTurret,

View file

@ -127,7 +127,8 @@ public class SStats implements SteamUserStatsCallback{
}
if(Core.settings.getBool("meltdownp", false) && Core.settings.getBool("spectrep", false)){
buildMeltdownSpectre.complete();
//TODO
//buildMeltdownSpectre.complete();
}
}
}
@ -148,7 +149,8 @@ public class SStats implements SteamUserStatsCallback{
if(e.content == Items.titanium) obtainTitanium.complete();
if(!content.sectors().contains(SectorPreset::locked)){
unlockAllZones.complete();
//TODO
//unlockAllZones.complete();
}
});

View file

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=46d1f7c89424a7abf0d7c51cd24f2a185ba98337
archash=73be877255367297b289b4ae09ca8d71af29cc5e