oddgames / UIToolkit

Single draw call UI solution for Unity with multi resolution support and more.
518 stars 152 forks source link

Wrong alpha using default shader #103

Open frarees opened 12 years ago

frarees commented 12 years ago

Shader problem?

In the picture there are two UIBackgroundLayout (the actual background and the layout that contain those 6 buttons). The second layout (black box with orange stroke) contains 6 UIToggleButton. As you may see, there's a problem concerning alpha resolution. I'm using a material with the UIToolkit/Alpha Enabled shader. I've tried the three shaders UIToolkit provides, with no result.

Any ideas?

eintopf commented 12 years ago

Same problem here. Any progress?

Chren commented 12 years ago

Same problem +1!

PapaWhiskey65 commented 12 years ago

if there all in the same atlas it will be almost random which is drawn first, the solution is to put them in separate atlases, copy the alpha shader, and edit the copy changing tag queue = transparent to tag queue = transparent + 1, then assign this new shader to the atlas you want drawn last

JMcElroy commented 11 years ago

Try playing with the zIndex.