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