Randi Rost gives an example of the coding needed for shading in OpenGL, including the code for the vertex shader, the fragment shader, and the application code used to initialize these shaders.
A Simple OpenGL Shading Example
2004-07-26 3D 4 Comments
sorry the link above did not word because of some rubbish in the url – here is the right one:
Nice site, thanks. I’ve added it to my favorities.
Thanks Eugenia, it’s cool to see some OpenGL article here. I didn’t try the program yet but it seems to be a very nice introduction to shaders with a simple exemple.
Here is a website which intends to help getting your IDE and C or Java ready for OpenGL programming on Windows, along with some basic sample code :
(warning, french language ! :p )
For general game programming, though everyone probably know them, I would also recommend
http://www.flipcode.com (kind of dead but the forum is alive)
http://www.gamedev.net (huge forums and quite a few articles)