Less water

This commit is contained in:
Anuken 2020-05-08 09:30:40 -04:00
parent d94427b4ee
commit 4f3cf9466e
3 changed files with 3 additions and 1 deletions

View File

@ -301,6 +301,7 @@ project(":tools"){
compile arcModule("natives:natives-desktop") compile arcModule("natives:natives-desktop")
compile arcModule("natives:natives-freetype-desktop") compile arcModule("natives:natives-freetype-desktop")
compile arcModule("natives:natives-box2d-desktop")
compile arcModule("backends:backend-headless") compile arcModule("backends:backend-headless")
compile "org.reflections:reflections:0.9.12" compile "org.reflections:reflections:0.9.12"

Binary file not shown.

View File

@ -16,6 +16,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
Simplex noise = new Simplex(); Simplex noise = new Simplex();
RidgedPerlin rid = new RidgedPerlin(1, 2); RidgedPerlin rid = new RidgedPerlin(1, 2);
float scl = 5f; float scl = 5f;
float waterOffset = 0.07f;
//TODO generate array from planet image later //TODO generate array from planet image later
Block[][] arr = { Block[][] arr = {
@ -43,7 +44,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
float rawHeight(Vec3 position){ float rawHeight(Vec3 position){
position = Tmp.v33.set(position).scl(scl); 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 @Override