hi chris, thanxs for your answer. the texture is read, but I think the correct size is not (gl_MultiTexCoord1). if I try to mix the two textures, then it looks like the second texture is only 1*1 pix. maybe I am wrong. I read that I have to pass that value manually. it works fine, when I use only gl_MultiTexCoord0 for both textures. marius.
chris clepper wrote:
On 10/1/07, marius schebella marius.schebella@gmail.com wrote:
I am trying to get more multitexture glsl stuff working. the problem I am having right now is that I don't know how to pass the rectangle coords of the second texture to the glsl program.
Send the message 'MyTex1 1' to glsl_program and it will set the sampler to read from the second texture unit. The sampler texunit is treated like any variable sent to the shader. You can name it whatever you want as long as the right message is given to glsl_program.