I just want to add in here, that the code for transparency consists of only 1 line,
alpha_rejection greater_equal 128
and it gets placed above texture_unit.
The code linked to has extra stuff, like emissive, diffuse, ambient, etc.
material preset_#_equipMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#equip.jpg
}
}
}
}
material preset_#_equipMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#equip.jpg
}
}
}
}
^ This is all that is necessary, but the code linked will also work, it will just add extra effects, so you may need to add the emissive/ambient/etc to the rest of the preset for all of it to look the same.