+1
Terminé

Premultiplied Alpha as Blending Preset

bjorn il y a 10 ans mis à jour par Freya Holmér (Developer) il y a 9 ans 4
The current presets for blending are alpha blending, additve, screen, multiply.

Although its simple to just create a custom one, it would be nice to have premultiplied Alpha there as well, since it's an awesome blend mode that needs more awareness :)

Solution

+1
Solution
Terminé
This has now been added in 1.13!
So, alpha blending:
Src * Src.a + (1-Src.a) * Dst
Premultiplied alpha blending:
1 * Src + (1-Src.a) * Dst

Right? ( Just making sure )
Yep :)
And that should written in CG as "Blend One OneMinusSrcAlpha" :)
http://en.wikibooks.org/wiki/GLSL_Programming/Unity/Transparency
:)
+1
Solution
Terminé
This has now been added in 1.13!