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.
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.
sorry the link above did not word because of some rubbish in the url – here is the right one:
http://nehe.gamedev.net
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 :
http://www.gopengl.org/
(warning, french language ! :p )
For general game programming, though everyone probably know them, I would also recommend
http://www.gametutorials.com/
and
http://www.gamasutra.com/
http://www.flipcode.com (kind of dead but the forum is alive)
http://www.gamedev.net (huge forums and quite a few articles)