Problem with multitexturing using GLSL

Hello,

I can’t get textures assigned to individual faces using GLSL, while in Multitexture mode it works nicely. I remember that I could get texture splatting using stencil texture, but if I do not need pretty blending I thought I could just create two (or more) different UV maps and assign them for wanted faces and texture.

But all I get looks like this:


Meanwhile in Multitexture mode I get effect I wanted:


test_multitexture.zip contains 2.64 blend file and textures.

What I am doing wrong? Is this GLSL mode limitation or bad usage?

Thank you.

Attachments

test_multitexture.zip (1.74 MB)

You need to create a separate material for each texture, the textures applied to faces are independent of the face in GLSL, they rely on the material, just like in renders.

Yep, that worked, Thank you!

SOLVED.