Transparency on FFP texture projection[Solved]

Posted By: bart_the_13th

Transparency on FFP texture projection[Solved] - 03/31/10 07:41

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.
Code:
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>;
		
	}
}";


Posted By: bart_the_13th

Re: Transparency on FFP texture projection - 04/04/10 03:44

Aw, forget it...
Ive solved this already grin
© 2024 lite-C Forums