public AONode(int w, int h, GraphPixelType p = GraphPixelType.RGBA) : base() { Name = "AO"; Id = Guid.NewGuid().ToString(); tileX = tileY = 1; width = w; height = h; rays = 4; internalPixelType = p; previewProcessor = new BasicImageRenderer(); processor = new OcclusionProcessor(); blur = new BlurProcessor(); input = new NodeInput(NodeType.Gray, this, "Gray Input"); Output = new NodeOutput(NodeType.Gray, this); Inputs = new List <NodeInput>(); Inputs.Add(input); Outputs = new List <NodeOutput>(); Outputs.Add(Output); }
public override void Dispose() { base.Dispose(); if (processor != null) { processor.Release(); processor = null; } if (blur != null) { blur.Release(); blur = null; } }