Swiftless Game Programming Site
Home Tutorials Contact
Home
News
OpenGL
GLSL
OpenCL
Maths
Misc
Work in Progress
Resume
 
 

GLSL Tutorials

If you would like to see this site updated, please help out and

Back to: Home - Tutorials

GLSL is the OpenGL Shader Language, and does for OpenGL what HLSL does for DirectX. GLSL allows for you to keep control of the screen on a per texel basis allowing for per pixel lighting effects, volumetric fog, high dynamic range rendering, reflections, refractions, blending, blurring, you name it, you can do it. Now GLSL does not just cover the graphical side, it also covers the object side. You can manipulate vertices on a per vertex basis using shaders. Along with GLSL, OpenGL can also use CG which is Nvidia's shading language. Personally I prefer GLSL because it uses similar syntax to OpenGL and hence making it easier to learn.

1. Setting up our first GLSL Project

1. Setting up our first GLSL Project

Learn to setup your program for GLSL support in an Object Oriented manner.

Last Edited: N/A

2. Validating our GLSL Shader

2. Validating our GLSL Shader

How to validate a GLSL shader upon compilation to find errors.

Last Edited: N/A

3. Using the glColor3f/glColor4f colours in our GLSL Shader

3. Using the glColor3f/glColor4f colours in our GLSL Shader

Lets get some basic coloring happening in GLSL.

Last Edited: N/A

4. Lighting our scene with GLSL

4. Lighting our scene with GLSL

How about some per vertex lighting in GLSL? Sound good?

Last Edited: N/A

5. Basic Per Pixel Lighting in GLSL

5. Basic Per Pixel Lighting in GLSL

Per pixel lighting in GLSL looks like a good improvement. The fixed function pipeline isn't good at this ;)

Last Edited: N/A

6. Using materials in GLSL

6. Using materials in GLSL

We can light our object. So this tutorial is about how to assign materials to our shapes and access them from GLSL.

Last Edited: N/A

7. Texturing our shapes in GLSL

7. Texturing our shapes in GLSL

Yay, lets texture our shapes in GLSL, then we can move onto some real fancy effects.

Last Edited: N/A

     

 

Copyright 2009, Donald Urquhart AKA Swiftless
Check out: http://www.cdadc.com