Both are related to the material scripts. Have a look on the screenshot below.
Problem:
I m using two different texture for trees, based on the same script but using different alpha rejection values. The leaf didn't work as the transparent areas were filled with another texture.
Code: Select all
material fir // WORKING!
{
receive_shadows on
technique
{
pass
{
diffuse 0.8 0.8 0.8 1.0
ambient 0.8 0.8 0.8 1.0
scene_blend alpha_blend
alpha_rejection greater 196
texture_unit
{
texture fir.png
}
}
}
}
material leaf // NOT WORKING!
{
receive_shadows on
technique
{
pass
{
diffuse 0.8 0.8 0.8 1.0
ambient 0.8 0.8 0.8 1.0
scene_blend alpha_blend
alpha_rejection greater 254 // DIFFERENT
texture_unit
{
texture leaf.png
}
}
}
}