+1
Lõpetatud
Premultiplied Alpha as Blending Preset
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 :)
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 :)
Vasta
+1
Vasta
Lõpetatud
Freya Holmér (Developer) 10 aastat tagasi
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 )
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
:)
And that should written in CG as "Blend One OneMinusSrcAlpha" :)
http://en.wikibooks.org/wiki/GLSL_Programming/Unity/Transparency
:)
Customer support service by UserEcho