9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 12:29:20 +00:00

More Performance

This commit is contained in:
Daniel Mills
2020-08-06 14:48:02 -04:00
parent f1e3210c7a
commit d5d7e9a952
12 changed files with 193 additions and 82 deletions

View File

@@ -1,7 +1,6 @@
package com.volmit.iris.util;
import com.volmit.iris.object.IrisBiome;
import com.volmit.iris.object.IrisBiomePaletteLayer;
import lombok.Data;
@@ -9,23 +8,12 @@ import lombok.Data;
public class BiomeResult
{
private IrisBiome biome;
private IrisBiomePaletteLayer air;
private double heightOffset;
private double distance;
public BiomeResult(IrisBiome biome, double distance)
{
this.biome = biome;
this.distance = distance;
this.heightOffset = 0;
}
public BiomeResult(IrisBiome biome, double distance, double height, IrisBiomePaletteLayer air)
{
this.biome = biome;
this.distance = distance;
this.heightOffset = height;
this.air = air;
}
public boolean is(BiomeResult r)

View File

@@ -67,7 +67,7 @@ public class CellGenerator
return ((fn.GetCellular((float) ((x * cellScale) + (cng.noise(x, z) * shuffle)),
(float) ((y * cellScale) + (cng.noise(x, y) * shuffle))
(float) ((y * 8 * cellScale) + (cng.noise(x, y * 8) * shuffle))
, (float) ((z * cellScale) + (cng.noise(z, x) * shuffle))) + 1f) / 2f) * (possibilities - 1);
}

View File

@@ -0,0 +1,19 @@
package com.volmit.iris.util;
import com.volmit.iris.object.IrisStructure;
import com.volmit.iris.object.IrisStructureTile;
import lombok.Data;
@Data
public class IrisStructureResult
{
private IrisStructureTile tile;
private IrisStructure structure;
public IrisStructureResult(IrisStructureTile tile, IrisStructure structure)
{
this.tile = tile;
this.structure = structure;
}
}