+1
Fertiggestellt

Premultiplied Alpha as Blending Preset

bjorn vor 10 Jahren aktualisiert von Freya Holmér (Developer) vor 9 Jahren 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 :)

Antwort

+1
Antwort
Fertiggestellt
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
Antwort
Fertiggestellt
This has now been added in 1.13!