Depth / Perspective with CoreImage?

I would like to create an effect similar to the image below using one single CALayer - not by splitting the image, transforming the perspective on both halves, and then placing it next to each other.

Can this be done using CoreImage?
Alternatively, can someone point me in the right direction using OpenGL?

enter image description here

+5
source share
1 answer

You should:

  • Split image
  • Run the perspective on each side
  • Create context and combine.
  • Finish the context and set the image to your layer.
0
source

All Articles