Bump version to v6.0, update & improve README, add new screenshot, and more; closes #19

This commit is contained in:
ChaoticByte 2025-01-01 21:43:32 +01:00
parent afea5c9727
commit 01e17bd6e3
No known key found for this signature in database
5 changed files with 9 additions and 24 deletions

View file

@ -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);