mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-04 16:09:23 +07:00
Less water
This commit is contained in:
parent
d94427b4ee
commit
4f3cf9466e
@ -301,6 +301,7 @@ project(":tools"){
|
||||
|
||||
compile arcModule("natives:natives-desktop")
|
||||
compile arcModule("natives:natives-freetype-desktop")
|
||||
compile arcModule("natives:natives-box2d-desktop")
|
||||
compile arcModule("backends:backend-headless")
|
||||
|
||||
compile "org.reflections:reflections:0.9.12"
|
||||
|
Binary file not shown.
@ -16,6 +16,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
|
||||
Simplex noise = new Simplex();
|
||||
RidgedPerlin rid = new RidgedPerlin(1, 2);
|
||||
float scl = 5f;
|
||||
float waterOffset = 0.07f;
|
||||
|
||||
//TODO generate array from planet image later
|
||||
Block[][] arr = {
|
||||
@ -43,7 +44,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
|
||||
|
||||
float rawHeight(Vec3 position){
|
||||
position = Tmp.v33.set(position).scl(scl);
|
||||
return Mathf.pow((float)noise.octaveNoise3D(7, 0.48f, 1f/3f, position.x, position.y, position.z), 2.3f) + 0.05f;
|
||||
return (Mathf.pow((float)noise.octaveNoise3D(7, 0.48f, 1f/3f, position.x, position.y, position.z), 2.3f) + waterOffset) / (1f + waterOffset);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user