If the Problem is transparent / sorting related this may help ( old example from wiki ), if not iam sry:
MATERIAL* mat_alphatest=
{
effect =
"
technique alpha_test
{
pass p0
{
zWriteEnable = true;
alphaTestEnable = true;
alphaBlendEnable = false;
}
}
";
}
action apply_alphatest_material(){
my.material = mat_alphatest;
}
i just converted from wiki to lite-c. but did not test.
Greets