I changed the wings and they turned completely white, what went wrong?
I made sure that the name of the texture matched the name of the file.
Code:
material preset_1_equipMatL
{
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.2 0.2 0.2 1.0
emissive 0.5 0.5 0.5 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture GuiWingsCleared.png
}
}
}
}
material preset_1_equipMatR
{
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.2 0.2 0.2 1.0
emissive 0.5 0.5 0.5 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture GuiWingsCleared.png
}
}
}
}
What did I do wrong? The wing file is a .png, and the code was not altered from the time before I changed the wings.