sampler2D DiffuseMapSampler; struct IN { float4 hPosition : POSITION; float4 color : COLOR; float2 uv : TEXCOORD0; }; float4 main(IN pin) : COLOR { float4 diffuseTexColor = tex2D(DiffuseMapSampler, pin.uv); return ( float4(pin.color.rgb, diffuseTexColor.a)); // use the color from vert shader but the alpha from the diffuse texture }