mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Fixes
This commit is contained in:
parent
86be84b015
commit
d89371a279
@ -96,8 +96,12 @@ public class ProjectManager
|
||||
{
|
||||
if(i.getName().endsWith(".code-workspace"))
|
||||
{
|
||||
sender.sendMessage("Updating Workspace");
|
||||
updateWorkspace(i);
|
||||
sender.sendMessage("Updating Workspace...");
|
||||
J.a(() ->
|
||||
{
|
||||
updateWorkspace(i);
|
||||
sender.sendMessage("Workspace Updated");
|
||||
});
|
||||
Desktop.getDesktop().open(i);
|
||||
break;
|
||||
}
|
||||
|
@ -335,8 +335,8 @@ public class CNG
|
||||
double scale = this.bakedScale * this.scale;
|
||||
double f = (fracture != null ? (fracture.noise(dim) - 0.5) * fscale : 0D);
|
||||
double x = dim.length > 0 ? dim[0] + f : 0D;
|
||||
double z = dim.length > 1 ? dim[1] - f : 0D;
|
||||
double y = dim.length > 2 ? dim[2] + f : 0D;
|
||||
double y = dim.length > 1 ? dim[1] - f : 0D;
|
||||
double z = dim.length > 2 ? dim[2] - f : 0D;
|
||||
double n = generator.noise(x * scale, y * scale, z * scale) * opacity;
|
||||
n = power != 1D ? Math.pow(n, power) : n;
|
||||
double m = 1;
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,22 +1,27 @@
|
||||
package com.volmit.iris.noise;
|
||||
|
||||
public class FlatNoise implements NoiseGenerator {
|
||||
public FlatNoise(long seed) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x) {
|
||||
return 0.5;
|
||||
public class FlatNoise implements NoiseGenerator
|
||||
{
|
||||
public FlatNoise(long seed)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double z) {
|
||||
return 0.5;
|
||||
public double noise(double x)
|
||||
{
|
||||
return 1D;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double y, double z) {
|
||||
return 0.5;
|
||||
public double noise(double x, double z)
|
||||
{
|
||||
return 1D;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double y, double z)
|
||||
{
|
||||
return 1D;
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +1,29 @@
|
||||
package com.volmit.iris.noise;
|
||||
|
||||
public class WhiteNoise implements NoiseGenerator {
|
||||
public class WhiteNoise implements NoiseGenerator
|
||||
{
|
||||
private final FastNoise n;
|
||||
|
||||
public WhiteNoise(long seed) {
|
||||
public WhiteNoise(long seed)
|
||||
{
|
||||
n = new FastNoise((int) seed);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x) {
|
||||
return (n.GetWhiteNoise((float) x, 0) / 2D) + 0.5D;
|
||||
public double noise(double x)
|
||||
{
|
||||
return (n.GetWhiteNoise(Float.intBitsToFloat((int) Double.doubleToLongBits(x / 1000d)) % 1000000F, 0) / 2D) + 0.5D;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double z) {
|
||||
return (n.GetWhiteNoise((float) x, (float) z) / 2D) + 0.5D;
|
||||
public double noise(double x, double z)
|
||||
{
|
||||
return (n.GetWhiteNoise(Float.intBitsToFloat((int) Double.doubleToLongBits(x / 1000d)) % 1000000F, Float.intBitsToFloat((int) Double.doubleToLongBits(z / 1000d)) % 1000000F) / 2D) + 0.5D;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double y, double z) {
|
||||
return (n.GetWhiteNoise((float) x, (float) y, (float) z) / 2D) + 0.5D;
|
||||
public double noise(double x, double y, double z)
|
||||
{
|
||||
return (n.GetWhiteNoise(Float.intBitsToFloat((int) Double.doubleToLongBits(x / 1000d)) % 1000000F, Float.intBitsToFloat((int) Double.doubleToLongBits(y / 1000d)) % 1000000F, Float.intBitsToFloat((int) Double.doubleToLongBits(z / 1000d)) % 1000000F) / 2D) + 0.5D;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ public class IrisBiome extends IrisRegistrant implements IRare
|
||||
|
||||
for(int i = 0; i < maxDepth; i++)
|
||||
{
|
||||
int offset = (getMaxHeight() - height) - i;
|
||||
int offset = (255 - height) - i;
|
||||
int index = offset % data.size();
|
||||
real.add(data.get(index < 0 ? 0 : index));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user