Set Different texture in material

I explain the problem better: I have a Quad and I want to keep all the characteristics of the material, but if necessary change the texture.
The problem is that the material takes only the last texture set not either, as I would like.
I hope I explained it well

Your code looks fine from here.

@pspeed said: Your code looks fine from here.
I just realized I made a stupid question! my apologies!

I ask one other thing … I would NOT define the color of a material, is it possible?
I would like the texture of the material defines the color.

…then don’t set a color.

Have you done the tutorials?

@pspeed said: ...then don't set a color.

Have you done the tutorials?


Yes, I have read but I would not let me escape the lesson…
if I do not set color disappears from the scene

Once again… your code looks fine from here. (hint: we can’t debug what we can’t see… “How long is this piece of string I’m holding?”)