9
0
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:
Daniel Mills
2020-11-06 00:54:28 -05:00
parent f2e3914ad8
commit 4f6a676c32
3 changed files with 44 additions and 4 deletions

View File

@@ -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)
{

View File

@@ -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;
}