I added a vertex shader to this example:
void main()
{
gl_Position = ftransform();
}
then I get this image:

What am I doing wrong here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For texture mapping using a vertex shader you will also need to pass the texture coordinates as well as the vertex positions to the fragment shader. Examples, including the one below, can be found here