From fcc76b257ef5cfb4514669df3b0144f8e8dd76ef Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 2 Jan 2026 16:21:34 -0800 Subject: Fold: implement dynamic branching in shader Switch from static branching approach using per-op data and fixed execution order to dynamic branching approach using dynamic data. This confers the main benefit of letting us dynamically reorder ops and duplicate them. It also lets us eliminate some of the plumbing tedium whenever we want to add new ops. --- Scripts/Fold/Editor/PointAlignNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Scripts/Fold/Editor/PointAlignNode.cs') diff --git a/Scripts/Fold/Editor/PointAlignNode.cs b/Scripts/Fold/Editor/PointAlignNode.cs index 7ab094b..c113928 100644 --- a/Scripts/Fold/Editor/PointAlignNode.cs +++ b/Scripts/Fold/Editor/PointAlignNode.cs @@ -15,7 +15,7 @@ public class PointAlignNode : BaseFoldNode public override FoldNodeSerialized Serialize() { - return new FoldNodeSerialized { vec0 = po }; + return new FoldNodeSerialized { opcode = 0, vec0 = po }; } } -- cgit v1.2.3