happy-turtle / camera-filters

Various image effects and filters. GLSL shaders created with the app ShaderEditor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image-Effects

Various image effects and filters. GLSL shaders created with the app ShaderEditor.

Chromatic Aberration
Sepia Grain         
Grayscale           
Kaleidoscope        
Glitch              
chromatic_aberration sepia_grain grayscale kaleidoscope glitch

Aspect Ratio

My phone's camera has a different aspect ratio than the display resolution. That is why I added the following three lines in most of the shaders to add black borders at the top and bottom:

[...]
float aspectRatio = 18.5 / 16.0;
[...]
st.x = st.x * aspectRatio +
  (1.0 - aspectRatio) / 2.0;
[...]
//crop image to aspect ratio of the camera
col = col * step(st.x, 1.0) * step(0.0, st.x);

About

Various image effects and filters. GLSL shaders created with the app ShaderEditor.

License:MIT License


Languages

Language:GLSL 100.0%