mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-10 09:46:03 +00:00
Cleanup
This commit is contained in:
@@ -175,7 +175,7 @@ public class CNG {
|
||||
}
|
||||
|
||||
public CNG(RNG random, NoiseType type, double opacity, int octaves) {
|
||||
this(random, type.create(random.nextParallelRNG((long) ((1113334944L * opacity) + 12922 + octaves)).lmax()), opacity, octaves);
|
||||
this(random, type.create(random.nextParallelRNG((long) ((1113334944L * opacity) + 12922 + octaves)).lmax()), opacity, octaves);
|
||||
}
|
||||
|
||||
public CNG(RNG random, NoiseGenerator generator, double opacity, int octaves) {
|
||||
|
||||
@@ -21,12 +21,11 @@ package com.volmit.iris.engine.noise;
|
||||
import com.volmit.iris.engine.object.IrisExpression;
|
||||
import com.volmit.iris.util.math.RNG;
|
||||
|
||||
public class ExpressionNoise implements NoiseGenerator{
|
||||
public class ExpressionNoise implements NoiseGenerator {
|
||||
private final RNG rng;
|
||||
private final IrisExpression expression;
|
||||
|
||||
public ExpressionNoise(RNG rng, IrisExpression expression)
|
||||
{
|
||||
public ExpressionNoise(RNG rng, IrisExpression expression) {
|
||||
this.rng = rng;
|
||||
this.expression = expression;
|
||||
}
|
||||
|
||||
@@ -29,8 +29,7 @@ public interface NoiseGenerator {
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean isNoScale()
|
||||
{
|
||||
default boolean isNoScale() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,8 +31,7 @@ public class WhiteNoise implements NoiseGenerator {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isNoScale()
|
||||
{
|
||||
public boolean isNoScale() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user