Bump version to v6.0, update & improve README, add new screenshot, and more; closes #19
This commit is contained in:
parent
afea5c9727
commit
01e17bd6e3
5 changed files with 9 additions and 24 deletions
|
@ -1,7 +1,6 @@
|
|||
|
||||
// Alpha Blending a over b after Bruce A. Wallace
|
||||
// sources:
|
||||
// - https://en.wikipedia.org/wiki/Alpha_compositing
|
||||
// source: https://en.wikipedia.org/wiki/Alpha_compositing
|
||||
vec4 alpha_blend(vec4 b, vec4 a) {
|
||||
float alpha = a.a + (b.a * (1.0 - a.a));
|
||||
vec3 col = ((a.rgb*a.a) + ((b.rgb*b.a) * (1.0 - a.a)) / alpha);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue