I cannot use set_texture_alias in my material scripts in iOS devices. However the same script works fine in in windows
I get this error message when the script is parsed:
Code: Select all
token "set_texture_alias" is not recognizedCode: Select all
material ShinyBase
{
technique iOS
{
pass
{
vertex_program_ref ShinyVP
{
}
fragment_program_ref ShinyFP
{
}
texture_unit diffuseMap
{
texture BaseWhite.png
}
texture_unit specMap
{
texture BaseWhite.png
}
}
}
}
material ShinyTest : ShinyBase
{
technique iOS
{
pass
{
set_texture_alias diffuseMap Floor01_D.pvr
set_texture_alias specMap Floor01_S.pvr
}
}
}
Instead, the workaround like this works
Code: Select all
texture_unit specMap
{
texture $texture_name
}
Thanks
