tweak biome modifiers
This commit is contained in:
parent
a9d218b105
commit
1c1ef12853
@ -160,7 +160,6 @@ public class WorldHeightmap implements Heightmap {
|
|||||||
public void visit(Cell<Terrain> cell, float x, float z) {
|
public void visit(Cell<Terrain> cell, float x, float z) {
|
||||||
continentModule.apply(cell, x, z);
|
continentModule.apply(cell, x, z);
|
||||||
regionModule.apply(cell, x, z);
|
regionModule.apply(cell, x, z);
|
||||||
|
|
||||||
root.apply(cell, x, z);
|
root.apply(cell, x, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ public class BiomeProvider extends AbstractBiomeProvider {
|
|||||||
public Biome getBiome(Cell<Terrain> cell, int x, int z) {
|
public Biome getBiome(Cell<Terrain> cell, int x, int z) {
|
||||||
if (cell.value <= context.levels.water) {
|
if (cell.value <= context.levels.water) {
|
||||||
if (cell.tag == context.terrain.river || cell.tag == context.terrain.riverBanks) {
|
if (cell.tag == context.terrain.river || cell.tag == context.terrain.riverBanks) {
|
||||||
return modifyBiome(biomeMap.getRiver(cell.temperature, cell.moisture, cell.biome), cell, x, z);
|
return biomeMap.getRiver(cell.temperature, cell.moisture, cell.biome);
|
||||||
} else if (cell.tag == context.terrain.ocean) {
|
} else if (cell.tag == context.terrain.ocean) {
|
||||||
return biomeMap.getOcean(cell.temperature, cell.moisture, cell.biome);
|
return biomeMap.getOcean(cell.temperature, cell.moisture, cell.biome);
|
||||||
} else if (cell.tag == context.terrain.deepOcean) {
|
} else if (cell.tag == context.terrain.deepOcean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user