mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix multipliers
This commit is contained in:
parent
06ef342953
commit
c468fa2a95
@ -85,8 +85,8 @@ public class IrisFeaturePositional {
|
|||||||
|
|
||||||
public double getStrength(double x, double z, RNG rng) {
|
public double getStrength(double x, double z, RNG rng) {
|
||||||
double actualRadius = getFeature().getActualRadius();
|
double actualRadius = getFeature().getActualRadius();
|
||||||
double mul = getFeature().getFractureRadius().getFracture() != null ? getFeature().getFractureRadius().getFracture().getMultiplier()/2 : 1;
|
double mul = getFeature().getFractureRadius() != null ? getFeature().getFractureRadius().getMultiplier()/2 : 1;
|
||||||
double mod = getFeature().getFractureRadius().getFracture() != null ? getFeature().getFractureRadius().create(rng).fitDouble(-mul, mul, x, z) : 0;
|
double mod = getFeature().getFractureRadius() != null ? getFeature().getFractureRadius().create(rng).fitDouble(-mul, mul, x, z) : 0;
|
||||||
double dist2 = distance2(x, z) + mod;
|
double dist2 = distance2(x, z) + mod;
|
||||||
|
|
||||||
if (getFeature().isInvertZone()) {
|
if (getFeature().isInvertZone()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user