Separating main texture from alpha?

Hi everyone,

I have a problem. I created a plain 3D object and i created a shader for it. Shader is a Transparent / VertexLit type. Everything works well this far.

Now we made a script and change the offset Y value from 1 to 2 and loop like that. now my tiling texture animated like traveling on this 3D plane. But unfortunately my transparency also moves with the offset value.

So questions is this: Can we have control on only main texture (for offset values), but don’t touch the alpha texture?

or give transparency with new image, not from the alpha channel?

or so you know any other way to do this?

I don’t think it is possible if they are the same texture, as they will both try and use the same offset for alpha and RGB.

A possible solution is to modify the shader so that it uses two textures (one for alpha, and one for RGB) and then just offset the RGB texture and not the alpha one. I believe the source for all the built in shaders is in the ShaderLab section of the forum.