Convert OpenGL shader to Metal (Swift) to be used in CIFilter
问题 I'm quite new to OpenGL / Metal and I'm trying to understand some fundamental concepts. Within our app, we are using CIFilter to filter videos. I saw a WWDC video from 2017 explaining that you can wrap CIFilter with Metal and use it as a regular filter. I'm trying to understand how to convert this OpenGL video effect to Metal so I can use it as a reference point for future effects. void mainImage(out vec4 fragColor, in vec2 fragCoord) { float amount = sin(iTime) * 0.1; // uv coords vec2 uv =