I am actually learning how to use OpenGL with the book “Learning Modern 3D Graphics Programming”. I’m using the OpenGL port to Java, LWJGL, but i can’t get to work one thing.
What i’m doing is trying, from a set of 3 vertices (each of which has 4 coords, XYZW) that passes unmodified from a vertex shader, and from a fragment shader to set a global color of white (1.0, 1.0, 1.0, 1.0) to render a white triangle. These vertices are put in a vertex buffer, and drawn to the screen with the GL_TRIANGLES option.
Here’s the code: http://pastebin.java-gaming.org/8a9c60f8390
What i see is actually a black window (as specified with glClearColor) but the triangle is absent. Any solutions/fixes?