Browse Source

Removed color evaluator

flabbet 1 year ago
parent
commit
4fbfb6bd48

+ 0 - 26
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/Evaluator/ColorEvaluatorLeftNode.cs

@@ -1,26 +0,0 @@
-using PixiEditor.ChangeableDocument.Rendering;
-using PixiEditor.DrawingApi.Core;
-using PixiEditor.DrawingApi.Core.ColorsImpl;
-using PixiEditor.DrawingApi.Core.Shaders.Generation.Expressions;
-using PixiEditor.Numerics;
-
-namespace PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.Evaluator;
-
-[NodeInfo("ColorEvaluatorLeft", "BEGIN_COLOR_EVALUATOR", PickerName = "COLOR_EVALUATOR_NODE_PAIR")]
-[PairNode(typeof(ColorEvaluatorRightNode), "ColorEvaluatorZone", true)]
-public class ColorEvaluatorLeftNode : Node
-{
-    public FuncOutputProperty<Float2> Position { get; }
-
-    public ColorEvaluatorLeftNode()
-    {
-        Position = CreateFuncOutput("Position", "UV", c => c.Position);
-    }
-    
-    protected override Texture? OnExecute(RenderingContext context)
-    {
-        return null;
-    }
-
-    public override Node CreateCopy() => new ColorEvaluatorLeftNode();
-}

+ 0 - 28
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/Evaluator/ColorEvaluatorRightNode.cs

@@ -1,28 +0,0 @@
-using PixiEditor.ChangeableDocument.Rendering;
-using PixiEditor.DrawingApi.Core;
-using PixiEditor.DrawingApi.Core.ColorsImpl;
-using PixiEditor.DrawingApi.Core.Shaders.Generation.Expressions;
-
-namespace PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.Evaluator;
-
-[NodeInfo("ColorEvaluatorRight", "FINISH_COLOR_EVALUATOR", PickerName = "")]
-[PairNode(typeof(ColorEvaluatorLeftNode), "ColorEvaluatorZone")]
-public class ColorEvaluatorRightNode : Node
-{
-    public FuncOutputProperty<Half4> Output { get; }
-
-    public FuncInputProperty<Half4> Input { get; }
-
-    public ColorEvaluatorRightNode()
-    {
-        Output = CreateFuncOutput("Output", "COLOR", c => Input.Value(c));
-        Input = CreateFuncInput<Half4>("Input", "COLOR", Colors.Black);
-    }
-    
-    protected override Texture? OnExecute(RenderingContext context)
-    {
-        return null;
-    }
-
-    public override Node CreateCopy() => new ColorEvaluatorRightNode();
-}