Is it possible to have an object with texturing and plain vertex colours with no texturing added? I have a race car object and I am texturing a number to the side but want the rest of the polygons to use the vertex colours. However as you can see from the picture it just appears all black. The square on the left was a test and uses a texture combined with the vertex colours to produce a coloured texture. Like this in fragement shader:
Texture2D(s_texture, texcoords) * vertex_colour;
This works for the quad, modifying the texture colour but not for plain polygons. So how do you tell openGL to ignore polygons which don’t need a texture applying?? The car object just needs to use the vertex colours for the bodywork and I will add a small (car number) texture to the side. It doesn’t work using my texture shader though as you can see from the picture. The race car object should be coloured using the vertex colours. Adding the Texture2D screws the car up. Hope it makes sense.
EDIT: I suppose the car is screwed up because the texture coordinates are all set to 0.0 for the polygons. But I did this because I don’t want the whole object textured - Just part of it (which I am yet to figure out as its a curved surface). I just want OpenGL to use the computed surface colour.