0
\$\begingroup\$

I am working on a Minesweeper clone that started as a Unity 4.6 project and ended up as a Unity 5 project. I have cube objects that use Legacy Shaders/Diffuse. I am new to Unity 5, so I am not fully aware of the changes to the shaders.

The following texture on cube objects does not render as it is (I think it used to). enter image description here

enter image description here

I want the flag appear on the cube as it is. What causes this output and how do I fix it?

\$\endgroup\$
0
\$\begingroup\$

Turns out, the png file doesn't have any background (I expected there to be a white background behind the flag image). This is how Unity handles textures when the texture file (PNG) doesn't have a background. Get a white background in the texture file and you're good to go.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.