This on is from Xd1v0. But I think that it doesnt support alpha transparency. What should I change to make it support transparencies?
Adding alphablendenable=true only make the whole model transparent, and alphatestenable doesnt seem to work.
MATERIAL* mtl_pTex1 = {effect = "
float4x4 matEffect1;
texture mtlSkin1;
texture entSkin1;
technique proj_tex
{
pass p0
{
Texture[0] = <entSkin1>;
Texture[1] = <mtlSkin1>; // projected
ColorArg1[0] = Texture;
ResultArg[0] = Temp;
ColorArg2[1] = Texture;
ColorArg1[1] = Diffuse;
ColorOp[1] = AddSigned2x;
ColorArg1[2] = Current;
ColorArg2[2] = Temp;
ColorOp[2] = Modulate;
TexCoordIndex[0] = 1;
AddressU[1] = BORDER;
AddressV[1] = BORDER;
BorderColor[1] = 0x000000;
texcoordindex[1] = cameraspaceposition ;
TextureTransformFlags[1] = count3 | projected;
TextureTransform[1] = <matEffect1>;
}
}";