I need only a vertex shader functionality, but without fragment shader my object is just black. How do I write a fragment shader, if i need one, so the object won't lose it's color? The closest i get to it is the following set:
In vertex shader:
// some functionality regarding changing objects position
gl_FrontColor = gl_Color;
gl_FrontSecondaryColor = gl_SecondaryColor;
gl_BackColor = gl_Color;
gl_BackSecondaryColor = gl_SecondaryColor;
And not loading fragment shader at all. That way object is colored but without texture. How do I keep the object's coloring/texturing as it is?