Skip to content

Commit 33f5fed

Browse files
committed
new: SplineAstNode
1 parent 8c9f71d commit 33f5fed

File tree

6 files changed

+536
-8
lines changed

6 files changed

+536
-8
lines changed

c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/McToAst.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.ishland.c2me.opts.dfc.common.ast.noise.DFTShiftNode;
1616
import com.ishland.c2me.opts.dfc.common.ast.noise.DFTWeirdScaledSamplerNode;
1717
import com.ishland.c2me.opts.dfc.common.ast.noise.ShiftedNoiseNode;
18+
import com.ishland.c2me.opts.dfc.common.ast.spline.SplineAstNode;
1819
import com.ishland.c2me.opts.dfc.common.ast.unary.AbsNode;
1920
import com.ishland.c2me.opts.dfc.common.ast.unary.CubeNode;
2021
import com.ishland.c2me.opts.dfc.common.ast.unary.NegMulNode;
@@ -76,6 +77,7 @@ public static AstNode toAst(DensityFunction df) {
7677
case DensityFunctionTypes.ShiftB f -> new DFTShiftBNode(f.offsetNoise());
7778
case DensityFunctionTypes.YClampedGradient f -> new YClampedGradientNode(f.fromY(), f.toY(), f.fromValue(), f.toValue());
7879
case DensityFunctionTypes.WeirdScaledSampler f -> new DFTWeirdScaledSamplerNode(toAst(f.input()), f.noise(), f.rarityValueMapper());
80+
case DensityFunctionTypes.Spline f -> new SplineAstNode(f.spline());
7981

8082
default -> {
8183
// delegateStatistics.computeIfAbsent(df.getClass(), unused -> new LongAdder()).increment();;

0 commit comments

Comments
 (0)