OK here....straight from the wiki.

Code:
MATERIAL* mat_alphatest =
{
  effect =
  "
    technique alpha_test
    {
      pass p0
      {
        zWriteEnable = true;
        alphaTestEnable = true;
      }
    }
  ";
}

action apply_alphatest_material()
{
  my.material = mat_alphatest;
}



Last edited by Nowherebrain; 08/07/09 16:15.

Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/