+1
Аяқталған

Premultiplied Alpha as Blending Preset

bjorn 10 year бұрын updated by Freya Holmér (Developer) 9 year бұрын 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 :)

Answer

+1
Answer
Аяқталған
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
Answer
Аяқталған
This has now been added in 1.13!