Hi,

I just started learning webGL.
I'm following the great http://www.learningwebgl.com tutorials but I have great difficulties in creating my own stuff. I also have almost no openGL experience.

What I want to do now is to show cube with texture (lesson 5 tutorial) and a line.
For now, if I use the shaders like they are in the tutorial, the line gets the color of the texture.
If I use a simple shader passing the color given in a color buffer then I get my line to be gray as I want it to be, but the cube with the texture disappears, since it has only texture color.
How can I write a shader that gives a color I want to to a shape and maps the texture on shapes that have texture.
Or in general, if i want some objects with texture and some without in my scene, how do you do that?