public override void ProcessImage(RenderImage image) { var OstafLikesTheCock = new RenderImage(image.Height, image.Height); CluwneLib.CurrentRenderTarget = OstafLikesTheCock; image.Blit(0, 0, image.Height, image.Height, Color.White, BlitterSizeMode.Crop); CluwneLib.CurrentRenderTarget = image; CluwneLib.CurrentShader = _shader; _shader.SetParameter("SceneTexture", OstafLikesTheCock); _shader.setDuration((Math.Abs(_duration))); OstafLikesTheCock.Blit(0, 0, image.Height, image.Height, Color.White, BlitterSizeMode.Crop); CluwneLib.CurrentRenderTarget = null; CluwneLib.CurrentShader = null; OstafLikesTheCock.Dispose(); }
public override void ProcessImage(RenderImage image) { var OstafLikesTheCock = new RenderImage("CockLoverOstaf", image.Height, image.Height); OstafLikesTheCock.BeginDrawing(); image.Blit(0, 0, image.Height, image.Height, SFML.Graphics.Color.White, BlitterSizeMode.Crop); OstafLikesTheCock.EndDrawing(); image.BeginDrawing(); _shader.setAsCurrentShader(); _shader.SetParameter("SceneTexture", OstafLikesTheCock); _shader.setDuration((Math.Abs(_duration))); OstafLikesTheCock.Blit(0, 0, image.Height, image.Height, SFML.Graphics.Color.White, BlitterSizeMode.Crop); image.EndDrawing(); _shader.ResetCurrentShader(); OstafLikesTheCock.Dispose(); }