As some geometries are a bit complex, I had to assign at least two UV sets to some objects - one to the diffuse texture, another one to the lightmap, which I connected to the ambient channel of each shader.
I tried to export the model to OGRE, but the OGRE exporter ofr Maya exports only one texture map, the diffuse one.
I looked around in the forums and I found that you have to manually specify more texture_unit statements in a shader in order to get multitextured materials:
Code: Select all
material generator/grass
{
technique
{
pass
{
ambient 0.588 0.588 0.588 1
diffuse 0.588 0.588 0.588 1
specular 0.9 0.9 0.9 1 0
texture_unit
{
texture grass_1.tga
filtering point point point
scale 0.1 0.1
}
texture_unit
{
texture default_lightmap.png
filtering point point point
}
}
}
}Your help would be greatly appreciated.
gm
