void Process() { if (!input.HasInput) { return; } GLTextuer2D i1 = (GLTextuer2D)input.Reference.Data; if (i1 == null) { return; } if (i1.Id == 0) { return; } CreateBufferIfNeeded(); processor.TileX = tileX; processor.TileY = tileY; processor.DirectX = pdirectx; processor.NoiseReduction = pnoiseReduction; processor.Intensity = pintensity; processor.Process(width, height, i1, buffer); processor.Complete(); Output.Data = buffer; TriggerTextureChange(); }
void Process() { GLTextuer2D i1 = (GLTextuer2D)input.Input.Data; if (i1 == null) { return; } if (i1.Id == 0) { return; } CreateBufferIfNeeded(); processor.TileX = tileX; processor.TileY = tileY; processor.DirectX = directx; processor.Intensity = pintensity; processor.Process(width, height, i1, buffer); processor.Complete(); Updated(); Output.Data = buffer; Output.Changed(); }
void Process() { GLTextuer2D i1 = (GLTextuer2D)input.Input.Data; if (i1 == null) { return; } if (i1.Id == 0) { return; } CreateBufferIfNeeded(); float pintensity = intensity; if (ParentGraph != null && ParentGraph.HasParameterValue(Id, "Intensity")) { pintensity = Convert.ToSingle(ParentGraph.GetParameterValue(Id, "Intensity")); } processor.TileX = tileX; processor.TileY = tileY; processor.DirectX = directx; processor.Intensity = pintensity; processor.Process(width, height, i1, buffer); processor.Complete(); Updated(); Output.Data = buffer; Output.Changed(); }