mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 19:56:19 +00:00
Minor Cellular opt
This commit is contained in:
@@ -279,9 +279,7 @@ public class CellularSampler extends NoiseFunction {
|
||||
|
||||
if(distanceFunction == DistanceFunction.Euclidean && returnType != ReturnType.CellValue) {
|
||||
distance0 = Math.sqrt(distance0);
|
||||
if(returnType != ReturnType.CellValue) {
|
||||
distance1 = Math.sqrt(distance1);
|
||||
}
|
||||
distance1 = Math.sqrt(distance1);
|
||||
}
|
||||
|
||||
return switch(returnType) {
|
||||
@@ -370,9 +368,7 @@ public class CellularSampler extends NoiseFunction {
|
||||
|
||||
if(distanceFunction == DistanceFunction.Euclidean && returnType != ReturnType.CellValue) {
|
||||
distance0 = Math.sqrt(distance0);
|
||||
if(returnType != ReturnType.CellValue) {
|
||||
distance1 = Math.sqrt(distance1);
|
||||
}
|
||||
distance1 = Math.sqrt(distance1);
|
||||
}
|
||||
|
||||
return switch(returnType) {
|
||||
|
||||
Reference in New Issue
Block a user