glsl-blend-overlay
Photoshop-like "overlay" blend mode for GLSL.
# blend = require(../) void
Usage
blend(vec3 background, vec3 foreground)
Blends background and foreground with an "overlay" blend mode. The algorithm for each channel is as follows:
bg < 0.5 ? (2.0 * bg * fg) : (1.0 - 2.0 * (1.0 - bg) * (1.0 - fg))
Contributing
See stackgl/contributing.
License
MIT. See LICENSE.md for details.