Wednesday, December 14, 2011

Alpa Transparency and Unity

I ran into a problem when I tried to create a material with a transparent texture in Unity.
The image (texture) would always show with a black background on my model. I had saved it as a PNG so it should have worked. The solution was to change the shader on the material to Decal and place the transparent texture image in the RBGA slot (the second one).
Also you can set the shader to Transparent-Diffuse or something similar within the Transparent option. Don't forget to set the image as the texture.
Shader options can be found by selecting the material in the Project panel, then choosing options in the Inspector panel.
link: How do I use Material/Texture alpha on a plane?

No comments:

Post a Comment