void Process() { GLTextuer2D i1 = (GLTextuer2D)input.Input.Data; if (i1 == null) { return; } if (i1.Id == 0) { return; } if (processor == null) { return; } CreateBufferIfNeeded(); processor.TileX = tileX; processor.TileY = tileY; processor.Hue = h * 6.0f; processor.Saturation = s; processor.Lightness = l; processor.Process(width, height, i1, buffer); processor.Complete(); Output.Data = buffer; Output.Changed(); Updated(); }
void Process() { if (!input.HasInput) { return; } GLTextuer2D i1 = (GLTextuer2D)input.Reference.Data; if (i1 == null) { return; } if (i1.Id == 0) { return; } if (processor == null) { return; } CreateBufferIfNeeded(); processor.TileX = tileX; processor.TileY = tileY; processor.Hue = h * 6.0f; processor.Saturation = s; processor.Lightness = l; processor.Process(width, height, i1, buffer); processor.Complete(); Output.Data = buffer; TriggerTextureChange(); }