I am having trouble with this one.

here is my code - the objects come out 100% white.

I am running 6.20 commercial with a ti/4200

my object is single sided polys with a texture and alpha.

I am pretty new to this stuff, any help is greatly appreciated.

material mat_overlay

{

effect=

"

texture entskin1;

dword mtlSkill1;

technique vegetation

{

pass p0

{

Texture[0]=<entskin1>;



ZWriteEnable=true;

AlphaTestEnable=true;

AlphaRef=<mtlSkill1>;

AlphaFunc=greater;

//CullMode=none;


ColorArg1[0]=Texture;

ColorOp[0]=Modulate2x;

ColorArg2[0]=Diffuse;

}

}

";

}
starter mat_overlay_init
{

mat_overlay.skill1=pixel_for_vec(vector(127,0,0),0,8888);
}

action matoverlay
{
my.flare = off;
my.transparent = off;
my.material = mat_overlay;
}

p.s. can someone help me get formatted code into these forums?!