- Home /
Transparent textures
I've added a simple blood screen, now when i want to make the blood texture transparent i cant because i don't know how, i am not using a material just a texture.
You need to specify how you are displaying the texture...GUI.DrawTexture(), GUITexture, a texture on a plane, or...
Answer by DaveA · Jun 17, 2013 at 07:20 PM
Use an alpha mask in your paint programs and a Transparent shader on your material
i just said i dont use a material and by saying alpha mask what do you mean?
Answer by create3dgames · Jun 17, 2013 at 09:21 PM
Your image must not be in JPG format. Make sure you have it as a PNG, or TGA, or PSD or any other format that supports alpha channels.
Your image must have an alpha channel. There are four channels in an images, red, blue, green, and alpha. An alpha channel is what gives it transparency. If your image doesn't have an alpha channel you can give it one in programs like Photoshop or GIMP, but you can also choose Alpha from Grayscale in your Unity image import options. That will convert the darkest parts of your image transparent.
Make sure when you do
GUI.DrawTexture
, the fourth parameter, the alphaBlend boolean is true. This makes Unity alpha blend the image on to the display, which is what you want.
Your answer
Follow this Question
Related Questions
Alpha in texture showing up white in scene with unlit/transparent shader 1 Answer
setting a texture of gameobject to transparent texture..!! 0 Answers
Mesh Deformation Help (Or other means of creating small scale destruction) 2 Answers
Block colour / no textures on sketchup/.dae-Objects 2 Answers
Lightmaps/objects and textures 2 Answers