mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 04:29:05 +00:00
True fracturing allowed
This commit is contained in:
@@ -37,6 +37,10 @@ public class IrisGeneratorStyle
|
||||
@Desc("The Output multiplier. Only used if parent is fracture.")
|
||||
private double multiplier = 1;
|
||||
|
||||
@DontObfuscate
|
||||
@Desc("If set to true, each dimension will be fractured with a different order of input coordinates. This is usually 2 or 3 times slower than normal.")
|
||||
private boolean maxFractureAccuracy = false;
|
||||
|
||||
@DontObfuscate
|
||||
@Desc("Apply a generator to the coordinate field fed into this parent generator. I.e. Distort your generator with another generator.")
|
||||
private IrisGeneratorStyle fracture = null;
|
||||
@@ -65,6 +69,7 @@ public class IrisGeneratorStyle
|
||||
return cng.aquire(() ->
|
||||
{
|
||||
CNG cng = style.create(rng).bake().scale(1D / zoom).pow(exponent).bake();
|
||||
cng.setTrueFracturing(maxFractureAccuracy);
|
||||
|
||||
if(fracture != null)
|
||||
{
|
||||
|
||||
@@ -123,8 +123,8 @@ public class IrisNoiseGenerator
|
||||
{
|
||||
if(i.isEnabled())
|
||||
{
|
||||
x += i.getNoise(superSeed + seed + g, xv, zv);
|
||||
z -= i.getNoise(superSeed + seed + g, zv, xv);
|
||||
x += i.getNoise(superSeed + seed + g, xv, zv) - (opacity / 2D);
|
||||
z -= i.getNoise(superSeed + seed + g, zv, xv) - (opacity / 2D);
|
||||
}
|
||||
g += 819;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user