Rotate GPUImageTiltShiftFilter - GPUImage
问题 I want a non-horizontal GPUImageTiltShiftFilter rotation. I want to rotate it to an arbitrary rotation angle. I also want the filter to be fast it can be rotated with a UI with a UIRotationGestureRecongizer. How do I do this? 回答1: Ah, figured it out! Instead of modifying GPUImageTiltShiftFilter, make a new GPUImageFilterGroup as a modified version of GPUImageGaussianSelectiveBlurFilter to add rotation. I added: uniform highp float rotation; within kGPUImageSMTiltShiftFragmentShaderString, and