nekocode / CameraFilter

📷 Realtime camera filters on android.
Apache License 2.0
2.14k stars 363 forks source link

Apply Custom Filter? #20

Open SohailYaseen opened 7 years ago

SohailYaseen commented 7 years ago

I want to apply my custom filters like Vignette, GrayScale, Blur, Blue Mess and many more, how can i achieve using your code.?

nekocode commented 7 years ago

You can take a look at the PixelizeFilter.java to learn how to make a simple filter.

SohailYaseen commented 7 years ago

It requires .fsh file, and that's the reason i am asking this question. How can i write .fsh file of my custom filter! @nekocode

nekocode commented 7 years ago

Yes, you need to write the fragment shader for your custom filter. This is a difficult science. Maybe you need to learn more about the OpenGL and shader programing.

If you need some examples. Just check the links in the README that link to the shadertoy.com.