Exemple #1
0
        public NormalNode(int w, int h, GraphPixelType p = GraphPixelType.RGBA)
        {
            Name = "Normal";
            Id   = Guid.NewGuid().ToString();

            width  = w;
            height = h;

            intensity = 8;

            tileX = tileY = 1;

            previewProcessor = new BasicImageRenderer();
            processor        = new NormalsProcessor();

            internalPixelType = p;

            input  = new NodeInput(NodeType.Gray, this, "Gray Input");
            Output = new NodeOutput(NodeType.Color, this);

            input.OnInputAdded   += Input_OnInputAdded;
            input.OnInputRemoved += Input_OnInputRemoved;
            input.OnInputChanged += Input_OnInputChanged;

            Inputs = new List <NodeInput>();
            Inputs.Add(input);

            Outputs = new List <NodeOutput>();
            Outputs.Add(Output);
        }
Exemple #2
0
        public NormalNode(int w, int h, GraphPixelType p = GraphPixelType.RGBA) : base()
        {
            Name = "Normal";
            Id   = Guid.NewGuid().ToString();

            directx        = false;
            noiseReduction = 0.004f;

            width  = w;
            height = h;

            intensity = 8;

            tileX = tileY = 1;

            previewProcessor = new BasicImageRenderer();
            processor        = new NormalsProcessor();

            internalPixelType = p;

            input  = new NodeInput(NodeType.Gray, this, "Gray Input");
            Output = new NodeOutput(NodeType.Color, this);

            Inputs.Add(input);
            Outputs.Add(Output);
        }
Exemple #3
0
        public override void Dispose()
        {
            base.Dispose();

            if (processor != null)
            {
                processor.Release();
                processor = null;
            }
        }