/Image-Effects

Post processing in Unity

Primary LanguageC#

Image Effects

This is a collection of post processing shaders I've authored for future use in other projects. Effects include gamma correction, brightness, contrast, saturation, recreation of photoshop blend modes and texture blending, miscellanous filters (e.g. sepia), gaussian blur, sharpness, toon shading, bayer dithering, and film grain. Effects are separated into different passes for ease of reference and modularity.

Outdated

This repo is my old set of post processing effects and isn't that great, please refer to my new post processing repo here.

Examples

Example1 Example2 Example3

References

https://en.wikipedia.org/wiki/Relative_luminance
https://en.wikipedia.org/wiki/Smoothstep#Generalization_to_higher-order_equations
https://en.wikipedia.org/wiki/Blend_modes
http://www.deepskycolors.com/archive/2010/04/21/formulas-for-Photoshop-blending-modes.html
Screenshotting: https://www.youtube.com/watch?v=d-56p770t0U&ab_channel=BoardToBitsGames
https://www.foundalis.com/res/imgproc.htm
https://en.wikipedia.org/wiki/Unsharp_masking
https://danielilett.com/2019-05-08-tut1-3-smo-blur/
https://surma.dev/things/ditherpunk/