GPUImage2 icon indicating copy to clipboard operation
GPUImage2 copied to clipboard

Is Transverse Chromatic Aberration possible?

Open cosmicsalad opened this issue 6 years ago • 2 comments

This isn't an issue with GPUImage2, but I'd like to know how possible it would be to create an effect like this with it: https://github.com/FlexMonkey/Filterpedia/blob/master/Filterpedia/customFilters/TransverseChromaticAberration.swift

cosmicsalad avatar Jul 26 '18 21:07 cosmicsalad

You should be able to translate the CIKernel there into a fragment shader fairly easily in order to reproduce the same effect. You just need to extract the transverseChromaticAberrationKernel and convert the relevant inputs and outputs into GLSL, following the template of one of the existing filters in the framework.

BradLarson avatar Jul 27 '18 14:07 BradLarson

Awesome thank you! I have no experience working with fragment shaders or GLSL but I'll give it a shot!

cosmicsalad avatar Aug 02 '18 20:08 cosmicsalad