Does anyone know where a good tutorial is on shaders for openGl (glsl), and also an API for it similar to irrlichts? (It has a list of all methods, etc you can use)
I have looked at the shader example in Irrlicht, and searched googled, but haven't found anything very helpful.
shaders
-
nathanf534
- Posts: 199
- Joined: Tue Dec 09, 2008 2:55 am
shaders
while(signatureEmpty){cout<<wittyComment();}
Well, it isn't GLSL, but I really liked "The Cg Tutorial" for learning Cg, and you can get IrrCg and use Cg with Irrlicht. It is cross-drive and cross-platform.
I personnaly learned GLSL looking at some others' shaders and some tutorials too. There are a lot of GLSL tutorials which are about OpenGL too, but you can only look at the GLSL shaders part.
Here is an exemple :
http://www.swiftless.com/glsltuts.html
I found also some good PDF explaining how to do per pixel lighting, starting from nothing explaining basic stuff, first coloring objects, then per vertex lighting and then per pixel. I don't remember the link, but Google about lighting & GLSL and you will find it.
Here is an exemple :
http://www.swiftless.com/glsltuts.html
I found also some good PDF explaining how to do per pixel lighting, starting from nothing explaining basic stuff, first coloring objects, then per vertex lighting and then per pixel. I don't remember the link, but Google about lighting & GLSL and you will find it.