mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Compat fixes
This commit is contained in:
parent
736deca1fc
commit
f97cd10bf6
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>bytecode.ninja</groupId>
|
<groupId>bytecode.ninja</groupId>
|
||||||
<artifactId>Iris</artifactId>
|
<artifactId>Iris</artifactId>
|
||||||
<version>1.0.31</version>
|
<version>1.0.32</version>
|
||||||
<name>Iris</name>
|
<name>Iris</name>
|
||||||
<properties>
|
<properties>
|
||||||
<skip.copy>false</skip.copy>
|
<skip.copy>false</skip.copy>
|
||||||
|
@ -61,6 +61,17 @@ public class IrisCarveLayer
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double opacity = Math.pow(IrisInterpolation.sinCenter(M.lerpInverse(getMinHeight(), getMaxHeight(), y)), 4);
|
||||||
|
return cng.aquire(() -> getStyle().create(rng.nextParallelRNG(-2340 * getMaxHeight() * getMinHeight()))).fitDouble(0D, 1D, x, y, z) * opacity > getThreshold();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCarved2(RNG rng, double x, double y, double z)
|
||||||
|
{
|
||||||
|
if(y > getMaxHeight() || y < getMinHeight())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
double innerRange = fullPercent * (maxHeight - minHeight);
|
double innerRange = fullPercent * (maxHeight - minHeight);
|
||||||
double opacity = 1D;
|
double opacity = 1D;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user