Compat fixes

This commit is contained in:
Daniel Mills 2020-10-31 19:28:44 -04:00
parent 736deca1fc
commit f97cd10bf6
2 changed files with 13 additions and 2 deletions

View File

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

View File

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