Alpha channels on textures

Hello guys,

I need to place some cut-out posters in my game, you know, the kind you find in the video rental looking kinda like this:

Thing is I don’t want the poster to be “squared”, but be cut around the edges of the guy. I have an image file with alpha channels so that part is pretty much ok, but I have no idea to implement this in Unity. I have a plane and I place the image as Texture2D.
Some shader maybe? I keep getting a white square around the whole thing.
[/img]

Use one of the transparency shaders.

–Eric

I see,
but I already have a shader made to show both sides
of my object, which looks like this

Shader "DoubleSided" {
	Properties {
		_Color ("Main Color", Color) = (1,1,1,1)
		_MainTex ("Base (RGB)", 2D) = "white" {}
	}
	SubShader {
		Pass{
		    Material {
                Diffuse (1,1,1,1)
            }
            Lighting On
            Cull off
			SetTexture [_MainTex] {
				constantColor [_Color]
                Combine Constant * Texture
            }
		}
	}
}

Could I add something to this one to keep the double side effect and still get the transparency values?

Use one of the transparent shaders and put “cull off” in it. Look in the shaderlab forum for the built-in shader source code.

–Eric

Here’s a version of the Transparent Diffuse shader with double sided triangles.

263833–9507–$alpha_diffuse_doublesided_163.shader (8.5 KB)